diff options
Diffstat (limited to 'www/js/locate.js')
-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 efc8e82..beb40e7 100644 --- a/www/js/locate.js +++ b/www/js/locate.js @@ -36,7 +36,7 @@ } ); }, - geolocate: function( minAccuracy ) { + geolocate: function( minAccuracy, skipLocationCheck ) { this.locating = 1; $('#ajaxOverlay').show(); @@ -52,7 +52,11 @@ navigator.geolocation.clearWatch( that.watch_id ); delete that.watch_id; - that.check_location(location.coords); + if ( skipLocationCheck ) { + that.trigger('gps_located', { coordinates: location.coords } ); + } else { + that.check_location(location.coords); + } } }, function() { |