diff --git a/images/noglobe.gif b/images/noglobe.gif new file mode 100644 index 0000000000..81e1765677 Binary files /dev/null and b/images/noglobe.gif differ 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;