friendica/view/jot_geotag.tpl
2010-10-29 00:02:26 -07:00

9 lines
226 B
Smarty

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