Commits

Ken Bolton committed ae74d30

Add geolocated coords to address field.

Comments (0)

Files changed (1)

reploc/templates/reploc/locator.js

     if(navigator.geolocation) {
         browserSupportFlag = true;
         navigator.geolocation.getCurrentPosition(function(position) {
+            refAdd.val(position.coords.latitude + ', ' + position.coords.longitude);
             myOptions.center = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
             map.setCenter(myOptions.center);
             map.setZoom(myOptions.zoom);