aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-04 17:49:18 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-04 17:49:18 +0100
commit81c2324af73f5095cde45e5e30dfe23580b6bff6 (patch)
tree40884d05fa9489e916bd1edbdfa69d55ad965f4b /www/js
parent5fa072a5b1564713ce2b453ff85311d796459962 (diff)
make sure current position tracking is on when we return to the map
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index e2a0d32..c2047d8 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -54,6 +54,7 @@
this.displayButtons(true);
this.setReportPosition({ lat: this.model.get('lat'), lon: this.model.get('lon') }, true);
this.listenTo(FMS.locator, 'gps_current_position', this.positionUpdate);
+ FMS.locator.trackPosition();
} else if ( FMS.currentPosition ) {
var info = { coordinates: FMS.currentPosition };
FMS.currentPosition = null;
@@ -62,6 +63,7 @@
}
this.displayButtons(false);
this.listenTo(FMS.locator, 'gps_current_position', this.positionUpdate);
+ FMS.locator.trackPosition();
} else {
this.locate();
this.displayButtons(false);