aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index f1fb175..bd12933 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -138,6 +138,13 @@
var position = this.getCrossHairPosition();
if ( FMS.isOffline ) {
+ this.stopListening(FMS.locator);
+ FMS.locator.stopTracking();
+ // these may be out of the area but lets just save them
+ // for now and they can be checked when we are online.
+ this.model.set('lat', position.lat );
+ this.model.set('lon', position.lon );
+ FMS.saveCurrentDraft();
this.navigate( 'offline' );
} else {
this.listenTo(FMS.locator, 'gps_located', this.goPhoto);