diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/locate.js | 7 | ||||
-rw-r--r-- | www/js/views/around.js | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/www/js/locate.js b/www/js/locate.js index 387db6f..f56e37b 100644 --- a/www/js/locate.js +++ b/www/js/locate.js @@ -37,22 +37,17 @@ }, geolocate: function( minAccuracy ) { - console.log('geolocation'); this.locating = 1; $('#ajaxOverlay').show(); - console.log(this); var that = this; this.watch_id = navigator.geolocation.watchPosition( function(location) { - console.log('success'); - console.log(location); if ( that.watch_id === undefined ) { console.log( 'no watch id' ); return; } if ( minAccuracy && location.coords.accuracy > minAccuracy ) { that.trigger('gps_locating', location.coords.accuracy); } else { - console.log( 'located with accuracy of ' + location.coords.accuracy ); that.locating = 0; navigator.geolocation.clearWatch( that.watch_id ); delete that.watch_id; @@ -72,7 +67,6 @@ }, updatePosition: function() { - console.log('updatePosition'); this.updating = 1; var that = this; this.update_watch_id = navigator.geolocation.watchPosition( @@ -93,7 +87,6 @@ }, check_location: function(coords) { - console.log('check_location'); var that = this; $.ajax( { url: CONFIG.FMS_URL + 'report/new/ajax', diff --git a/www/js/views/around.js b/www/js/views/around.js index 622c9f2..98a36c6 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -49,7 +49,6 @@ } $('#accuracy').text(parseInt(accuracy, 10) + 'm'); - console.log('accuracy is ' + accuracy); }, startLocateProgress: function() { |