diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-22 15:33:32 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-22 15:58:17 +0100 |
commit | bacefc8d0568236ffdb1912882e2ff5419b2a818 (patch) | |
tree | edc7808388b320c310be010123ddb3ff7dc3a037 /www/js/views/submit.js | |
parent | ed17181e0660ce6452b9fbc4a8a6d1a807dca453 (diff) |
set and clear currentDraft details via methods on FMS object to ensure consistency
Diffstat (limited to 'www/js/views/submit.js')
-rw-r--r-- | www/js/views/submit.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js index 4878d7e..937eaa7 100644 --- a/www/js/views/submit.js +++ b/www/js/views/submit.js @@ -57,8 +57,7 @@ }, onRemoveDraft: function() { - FMS.currentDraft = new FMS.Draft(); - localStorage.currentDraftID = null; + FMS.clearCurrentDraft(); FMS.createdReport = this.report; this.navigate( 'sent', 'left' ); }, |