aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-28 10:58:46 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-28 10:58:46 +0100
commit33d4782795bfbbe1a32f0030a8da475fb8c3fb8d (patch)
treedebf25956f8fec5e1583f5bbe9ab28624db9679c /www/js
parentb19997c678c31811b982e7aca7a643a903c95a72 (diff)
only show relocate button if GPS locating has worked in some way
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index 1eac541..bba85d2 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -81,6 +81,7 @@
},
gotLocation: function( info ) {
+ $('#relocate').show();
this.finishedLocating();
this.listenTo(FMS.locator, 'gps_current_position', this.positionUpdate);
@@ -98,6 +99,7 @@
},
positionUpdate: function( info ) {
+ $('#relocate').show();
FMS.currentPosition = info.coordinates;
var centre = this.projectCoords( info.coordinates );
@@ -148,7 +150,6 @@
},
displayButtons: function(isLocationSet) {
- $('#relocate').show();
if ( fixmystreet.map ) {
fixmystreet.nav.activate();
}