diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-20 14:49:31 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-20 14:49:31 +0100 |
commit | c99fd7b7c12523710f33f0d6eb31e75a70500e0e (patch) | |
tree | b39bc197193539db0be5831037e6a274c4373f66 /src | |
parent | 028a587dca5da75fe680c2eec6633d297734f0b5 (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')
-rw-r--r-- | src/js/views/locator.js | 3 |
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); |