diff options
Diffstat (limited to 'www/js/views/existing.js')
-rw-r--r-- | www/js/views/existing.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/www/js/views/existing.js b/www/js/views/existing.js index 4f761fd..21a3404 100644 --- a/www/js/views/existing.js +++ b/www/js/views/existing.js @@ -13,17 +13,20 @@ 'vclick #discard': 'discardReport' }, - useReport: function() { + useReport: function(e) { + e.preventDefault(); FMS.setCurrentDraft(this.model); this.navigate('around'); }, - saveReport: function() { + saveReport: function(e) { + e.preventDefault(); FMS.clearCurrentDraft(); this.navigate('around'); }, - discardReport: function() { + discardReport: function(e) { + e.preventDefault(); var reset = FMS.removeDraft(this.model.id, true); var that = this; reset.done( function() { that.onDraftRemove(); } ); |