diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-08 17:10:55 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-08 17:12:36 +0100 |
commit | ba1c8b4193a4cca5c02e10af44025ad71b9ca052 (patch) | |
tree | 00446853153a665306886b4ba7f0a97f592c0695 /www/js | |
parent | 63047aa7ef25dabd19619757aba70f3c81fc8291 (diff) |
event for canceling offline geolocation
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/offline.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/views/offline.js b/www/js/views/offline.js index b1168e6..117c67e 100644 --- a/www/js/views/offline.js +++ b/www/js/views/offline.js @@ -17,6 +17,7 @@ 'vclick #id_existing': 'addPhoto', 'vclick #id_del_photo_button': 'deletePhoto', 'vclick #locate': 'locate', + 'vclick #locate_cancel': 'onClickCancel', 'blur input': 'toggleNextButton', 'blur textarea': 'toggleNextButton' }, @@ -106,6 +107,10 @@ }); }, + onClickCancel: function() { + this.finishedLocating(); + }, + onClickButtonNext: function() { this.updateCurrentReport(); if ( !this.draftHasContent() && this.model.id ) { |