diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-20 00:33:17 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-20 00:33:17 -0700 |
commit | 68464b5d93e2ba61e889008ff7ddbacb40ba999a (patch) | |
tree | ad6be6fd64b2820ef7b7f957568b065bfad2fa7e /view | |
parent | b91e9545f75d196a8356a6c252278dee1cab95ae (diff) | |
download | volse-hubzilla-68464b5d93e2ba61e889008ff7ddbacb40ba999a.tar.gz volse-hubzilla-68464b5d93e2ba61e889008ff7ddbacb40ba999a.tar.bz2 volse-hubzilla-68464b5d93e2ba61e889008ff7ddbacb40ba999a.zip |
ability to clear browser location on individual posts
Diffstat (limited to 'view')
-rw-r--r-- | view/jot-header.tpl | 5 | ||||
-rw-r--r-- | view/jot.tpl | 5 | ||||
-rw-r--r-- | view/jot_geotag.tpl | 1 | ||||
-rw-r--r-- | view/theme/default/style.css | 7 |
4 files changed, 16 insertions, 2 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl index bdf0cb610..81c513484 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 </script> diff --git a/view/jot.tpl b/view/jot.tpl index 363c4617f..6590cace8 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -27,7 +27,10 @@ <img id="profile-video" src="images/youtube_icon.gif" alt="Insert YouTube video" title="Insert YouTube video" onclick="jotGetVideo();" /> </div> <div id="profile-location-wrapper" style="display: $visitor;" > - <img id="profile-location" src="images/globe.gif" alt="Set your location" title="Set your lcoation" onclick="jotGetLocation();" /> + <img id="profile-location" src="images/globe.gif" alt="Set your location" title="Set your location" onclick="jotGetLocation();" /> + </div> + <div id="profile-nolocation-wrapper" style="display: none;" > + <img id="profile-nolocation" src="images/noglobe.gif" alt="Clear Browser Location" title="Clear Browser Location" onclick="jotClearLocation();" /> </div> <div id="profile-rotator-wrapper" style="display: $visitor;" > <img id="profile-rotator" src="images/rotator.gif" alt="Please wait" title="Please wait" style="display: none;" /> diff --git a/view/jot_geotag.tpl b/view/jot_geotag.tpl index 835cc9ebb..c140d5627 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 066456e54..32d8eeba0 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; |