aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-15 17:44:07 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-15 17:44:07 +0100
commitbb76e80682aeed6bfc1bc9237fb05a9da0b62704 (patch)
tree3ea43a22915c924376befaac5e5e53ac00154ce3
parent9f0d317bd4b1e46e88b3427c1217f914ddddcd3f (diff)
Geolocation error was never shown if accuracy check failed
If we got a geolocation fix but not one that met the accuracy check then the locating screen was being hidden but the error message was never being displayed.
-rw-r--r--src/js/views/locator.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/js/views/locator.js b/src/js/views/locator.js
index 9b630a2..dc8ec8c 100644
--- a/src/js/views/locator.js
+++ b/src/js/views/locator.js
@@ -35,9 +35,8 @@
showLocateProgress: function() {
if ( !this.located && this.locateCount > 20 ) {
- FMS.searchMessage = FMS.strings.geolocation_failed;
- $(document).undelegate('.ui-content', 'touchmove', false);
- $('#locating').hide();
+ var details = { msg: FMS.strings.geolocation_failed };
+ this.failedLocation(details);
return;
}
var percent = ( ( 20 - this.locateCount ) / 20 ) * 100;