diff options
-rw-r--r-- | www/js/locate.js | 8 |
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, |