Sfoglia il codice sorgente

ability to clear browser location on individual posts

tags/2.1
Mike Macgirvin 10 anni fa
parent
commit
68464b5d93
5 ha cambiato i file con 16 aggiunte e 2 eliminazioni
  1. BIN
      images/noglobe.gif
  2. +5
    -0
      view/jot-header.tpl
  3. +4
    -1
      view/jot.tpl
  4. +1
    -0
      view/jot_geotag.tpl
  5. +6
    -1
      view/theme/default/style.css

BIN
images/noglobe.gif Vedi File

Prima Dopo
Larghezza: 16  |  Altezza: 16  |  Dimensione: 606 B

+ 5
- 0
view/jot-header.tpl Vedi File

@@ -118,6 +118,11 @@ tinyMCE.init({
}
}

function jotClearLocation() {
$('#jot-coord').val('');
$('#profile-nolocation-wrapper').hide();
}

$geotag

</script>


+ 4
- 1
view/jot.tpl Vedi File

@@ -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;" />


+ 1
- 0
view/jot_geotag.tpl Vedi File

@@ -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();
});
}


+ 6
- 1
view/theme/default/style.css Vedi File

@@ -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;


Caricamento…
Annulla
Salva