diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-15 17:44:07 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-15 17:44:07 +0100 |
commit | bb76e80682aeed6bfc1bc9237fb05a9da0b62704 (patch) | |
tree | 3ea43a22915c924376befaac5e5e53ac00154ce3 | |
parent | 9f0d317bd4b1e46e88b3427c1217f914ddddcd3f (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.js | 5 |
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; |