aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-25 12:25:56 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-25 12:25:56 +0100
commit4c9537e70fbc6fed3105458007016b516d481d85 (patch)
treec1dd04d812532df15a2429f29af8cef3a865d394 /src
parent3e386c7a0d5c0ac4dafeb5d05c2b99fdabddeec9 (diff)
stop phantom click throughs from canceling the locating screen and also from it starting and immediately returning on the offline screen
Diffstat (limited to 'src')
-rw-r--r--src/js/views/locator.js3
-rw-r--r--src/js/views/offline.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/js/views/locator.js b/src/js/views/locator.js
index 9b630a2..b43b59f 100644
--- a/src/js/views/locator.js
+++ b/src/js/views/locator.js
@@ -3,7 +3,8 @@
LocatorView: FMS.FMSView.extend({
skipLocationCheck: false,
- locate: function() {
+ locate: function(e) {
+ e.preventDefault();
$(document).delegate('.ui-content', 'touchmove', false);
$('#locating').show();
this.listenTo(FMS.locator, 'gps_located', this.gotLocation);
diff --git a/src/js/views/offline.js b/src/js/views/offline.js
index 0b0f5f8..db467a7 100644
--- a/src/js/views/offline.js
+++ b/src/js/views/offline.js
@@ -107,7 +107,8 @@
});
},
- onClickCancel: function() {
+ onClickCancel: function(e) {
+ e.preventDefault();
this.finishedLocating();
},