From 68464b5d93e2ba61e889008ff7ddbacb40ba999a Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 20 Oct 2010 00:33:17 -0700 Subject: [PATCH] ability to clear browser location on individual posts --- images/noglobe.gif | Bin 0 -> 606 bytes view/jot-header.tpl | 5 +++++ view/jot.tpl | 5 ++++- view/jot_geotag.tpl | 1 + view/theme/default/style.css | 7 ++++++- 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 images/noglobe.gif diff --git a/images/noglobe.gif b/images/noglobe.gif new file mode 100644 index 0000000000000000000000000000000000000000..81e176567766370607b7da07cd3d16a7a7592622 GIT binary patch literal 606 zcmdUsJ#W)M9Ebm|W9$|LM+j-Cc!?=5jRXh-Ej>!B5+J2vDP@ZofQW_FV((*Qmqi50b>9eg9Cl_BNFXK~JJ9y#dk=^m@=$JEizSCZ~IE|d| zE0+&s)|>i-+i(t74^|!5whoaA+x4=UxGMKV^VW{%O=YV`W##jiuPVNB{n~}SKz_RM z_jqaL+$5>({Q9? literal 0 HcmV?d00001 diff --git a/view/jot-header.tpl b/view/jot-header.tpl index bdf0cb6106..81c513484a 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -118,6 +118,11 @@ tinyMCE.init({ } } + function jotClearLocation() { + $('#jot-coord').val(''); + $('#profile-nolocation-wrapper').hide(); + } + $geotag diff --git a/view/jot.tpl b/view/jot.tpl index 363c4617f9..6590cace8f 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -27,7 +27,10 @@ Insert YouTube video
- Set your location + Set your location +
+
diff --git a/view/jot_geotag.tpl b/view/jot_geotag.tpl index 835cc9ebb9..c140d5627e 100644 --- a/view/jot_geotag.tpl +++ b/view/jot_geotag.tpl @@ -2,6 +2,7 @@ if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { $('#jot-coord').val(position.coords.latitude + ',' + position.coords.longitude); + $('#profile-nolocation-wrapper').show(); }); } diff --git a/view/theme/default/style.css b/view/theme/default/style.css index 066456e546..32d8eeba0d 100644 --- a/view/theme/default/style.css +++ b/view/theme/default/style.css @@ -79,7 +79,8 @@ blockquote:before { } #jot-perms-icon, -#profile-location, +#profile-location, +#profile-nolocation, #profile-video, #profile-link, #wall-image-upload, @@ -943,6 +944,10 @@ input#dfrn-url { float: left; margin-left: 20px; } +#profile-nolocation-wrapper { + float: left; + margin-left: 20px; +} #profile-jot-perms { float: left;