From b91e9545f75d196a8356a6c252278dee1cab95ae Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 19 Oct 2010 20:58:01 -0700 Subject: [PATCH] we'll need this for browser geotagging of course --- view/jot_geotag.tpl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 view/jot_geotag.tpl diff --git a/view/jot_geotag.tpl b/view/jot_geotag.tpl new file mode 100644 index 0000000000..835cc9ebb9 --- /dev/null +++ b/view/jot_geotag.tpl @@ -0,0 +1,7 @@ + + if(navigator.geolocation) { + navigator.geolocation.getCurrentPosition(function(position) { + $('#jot-coord').val(position.coords.latitude + ',' + position.coords.longitude); + }); + } +