aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/existing.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/existing.js')
-rw-r--r--www/js/views/existing.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/www/js/views/existing.js b/www/js/views/existing.js
index 95beee5..c9bf459 100644
--- a/www/js/views/existing.js
+++ b/www/js/views/existing.js
@@ -13,18 +13,17 @@
},
useReport: function() {
- localStorage.currentDraftID = FMS.currentDraft.id;
+ FMS.setCurrentDraft(this.model);
this.navigate('around');
},
saveReport: function() {
- localStorage.currentDraftID = null;
- FMS.currentDraft = new FMS.Draft();
+ FMS.clearCurrentDraft();
this.navigate('around');
},
discardReport: function() {
- var reset = FMS.removeDraft(FMS.currentDraft.id, true);
+ var reset = FMS.removeDraft(this.model.id, true);
var that = this;
reset.done( function() { that.onDraftRemove(); } );
},