aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-20 14:49:31 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-20 14:49:31 +0100
commitc99fd7b7c12523710f33f0d6eb31e75a70500e0e (patch)
treeb39bc197193539db0be5831037e6a274c4373f66 /src/js
parent028a587dca5da75fe680c2eec6633d297734f0b5 (diff)
Stop running locate progress indicator when hidden
If the locating screen isn't visible then the locating process has stopped so we should stop trying to update the progress indicator
Diffstat (limited to 'src/js')
-rw-r--r--src/js/views/locator.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/views/locator.js b/src/js/views/locator.js
index dc8ec8c..e6a885d 100644
--- a/src/js/views/locator.js
+++ b/src/js/views/locator.js
@@ -34,6 +34,9 @@
},
showLocateProgress: function() {
+ if ( $('#locating').css('display') == 'none' ) {
+ return;
+ }
if ( !this.located && this.locateCount > 20 ) {
var details = { msg: FMS.strings.geolocation_failed };
this.failedLocation(details);