aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--images/noglobe.gifbin0 -> 606 bytes
-rw-r--r--view/jot-header.tpl5
-rw-r--r--view/jot.tpl5
-rw-r--r--view/jot_geotag.tpl1
-rw-r--r--view/theme/default/style.css7
5 files changed, 16 insertions, 2 deletions
diff --git a/images/noglobe.gif b/images/noglobe.gif
new file mode 100644
index 000000000..81e176567
--- /dev/null
+++ b/images/noglobe.gif
Binary files differ
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;