friendica-github/view/jot_geotag.tpl
2011-01-05 02:32:18 -08:00

8 lines
232 B
Smarty

if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
$('#jot-coord').val(position.coords.latitude + ' ' + position.coords.longitude);
$('#profile-nolocation-wrapper').show();
});
}