diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-22 13:25:48 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-22 15:58:17 +0100 |
commit | fa8938228b0784f2c07233cc336a3ab3014c63a7 (patch) | |
tree | e23ca90a54f17274982958bb7b03740b495710c4 /www/js | |
parent | 8ad6d6e7b365d0433d94ebf8cc288d02d64afd3d (diff) |
use model.id as that has actually been set
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/submit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js index 09231be..4878d7e 100644 --- a/www/js/views/submit.js +++ b/www/js/views/submit.js @@ -51,7 +51,7 @@ if ( FMS.currentUser ) { FMS.currentUser.save(); } - var reset = FMS.removeDraft( FMS,currentDraftID, true); + var reset = FMS.removeDraft( model.id, true); var that = this; reset.done( function() { that.onRemoveDraft(); } ); }, |