2013-04-23 11:47:57 +00:00
|
|
|
|
|
|
|
if(navigator.geolocation) {
|
|
|
|
navigator.geolocation.getCurrentPosition(function(position) {
|
|
|
|
var lat = position.coords.latitude.toFixed(4);
|
|
|
|
var lon = position.coords.longitude.toFixed(4);
|
|
|
|
|
2013-06-01 16:42:51 +00:00
|
|
|
$('#jot-coord').val(lat + ', ' + lon);
|
|
|
|
$('#profile-nolocation-wrapper').show();
|
2013-04-23 11:47:57 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|