aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-19 12:36:52 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-22 15:55:59 +0100
commit60f3b1ef22c5bd987bef6b96656bb3f68d8f529b (patch)
tree1a7b5ac0ea47be7ce89d8b831a685cfb32888051 /www/js
parent8328f800e690ab5d63e9d246ec174893a9b59fab (diff)
move location accuracy out to config
Diffstat (limited to 'www/js')
-rw-r--r--www/js/app.js2
-rw-r--r--www/js/views/locator.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 4fa0ff8..a62ec73 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -53,8 +53,6 @@ var tpl = {
reportToView: null,
- locationAccuracy: 100,
-
online: function() {
FMS.isOffline = 0;
},
diff --git a/www/js/views/locator.js b/www/js/views/locator.js
index 2475da8..46ebcce 100644
--- a/www/js/views/locator.js
+++ b/www/js/views/locator.js
@@ -9,7 +9,7 @@
this.listenTo(FMS.locator, 'gps_failed', this.failedLocation);
this.listenTo(FMS.locator, 'gps_locating', this.locationUpdate);
- FMS.locator.geolocate(FMS.locationAccuracy, this.skipLocationCheck);
+ FMS.locator.geolocate(CONFIG.ACCURACY, this.skipLocationCheck);
this.startLocateProgress();
},