Browse Source

we'll need this for browser geotagging of course

tags/2.1
Mike Macgirvin 10 years ago
parent
commit
b91e9545f7
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      view/jot_geotag.tpl

+ 7
- 0
view/jot_geotag.tpl View File

@@ -0,0 +1,7 @@

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


Loading…
Cancel
Save