aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/views/locator.js6
-rw-r--r--src/js/views/offline.js3
2 files changed, 7 insertions, 2 deletions
diff --git a/src/js/views/locator.js b/src/js/views/locator.js
index 46ebcce..b43b59f 100644
--- a/src/js/views/locator.js
+++ b/src/js/views/locator.js
@@ -3,7 +3,9 @@
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);
this.listenTo(FMS.locator, 'gps_failed', this.failedLocation);
@@ -35,6 +37,7 @@
showLocateProgress: function() {
if ( !this.located && this.locateCount > 20 ) {
FMS.searchMessage = FMS.strings.geolocation_failed;
+ $(document).undelegate('.ui-content', 'touchmove', false);
$('#locating').hide();
return;
}
@@ -49,6 +52,7 @@
this.stopListening(FMS.locator, 'gps_locating');
this.stopListening(FMS.locator, 'gps_located');
this.stopListening(FMS.locator, 'gps_failed');
+ $(document).undelegate('.ui-content', 'touchmove', false);
$('#locating').hide();
},
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();
},