diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-11 10:55:51 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-11 10:55:51 +0100 |
commit | e5941bcca6cba902bbee7bda79cccbc5da141ebf (patch) | |
tree | 808aea901d0cbb77e5ca9a4ec95f82c39e709f34 /www/js | |
parent | 929c5effe738b25c19421f63b63a9ebe92d523cc (diff) |
cancel event propogation for existing report buttons
Diffstat (limited to 'www/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(); } ); |