aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-22 16:35:20 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-22 16:35:26 +0100
commit5ad9377cebaadc81d39d0af1f5d9006d6ffce85d (patch)
treefa935bdb4e2d095fec7d7b0c7b0e51a0f781952d /www/js
parentbacefc8d0568236ffdb1912882e2ff5419b2a818 (diff)
do not display spinner plus locating screen at the same time
Diffstat (limited to 'www/js')
-rw-r--r--www/js/locate.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/js/locate.js b/www/js/locate.js
index beb40e7..c7ae17c 100644
--- a/www/js/locate.js
+++ b/www/js/locate.js
@@ -55,7 +55,7 @@
if ( skipLocationCheck ) {
that.trigger('gps_located', { coordinates: location.coords } );
} else {
- that.check_location(location.coords);
+ that.check_location(location.coords, false);
}
}
},
@@ -90,10 +90,14 @@
}
},
- check_location: function(coords) {
+ check_location: function(coords, showSpinner) {
+ if ( typeof( showSpinner ) === 'undefined' ) {
+ showSpinner = true;
+ }
var that = this;
$.ajax( {
url: CONFIG.FMS_URL + 'report/new/ajax',
+ global: showSpinner,
dataType: 'json',
data: {
latitude: coords.latitude,