From bb76e80682aeed6bfc1bc9237fb05a9da0b62704 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 15 Aug 2013 17:44:07 +0100 Subject: 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. --- src/js/views/locator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3