diff options
author | marijus <mario@mariovavti.com> | 2014-12-09 15:22:53 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-12-09 15:22:53 +0100 |
commit | cc365513edc0ea7829e44a7854a47f3fcf8a17d1 (patch) | |
tree | c6d2e6923054472ae97c064f1ccd2244fd82af3e | |
parent | 242713ebef71e0e2b6b1666f7c2400b26772ba2d (diff) | |
download | volse-hubzilla-cc365513edc0ea7829e44a7854a47f3fcf8a17d1.tar.gz volse-hubzilla-cc365513edc0ea7829e44a7854a47f3fcf8a17d1.tar.bz2 volse-hubzilla-cc365513edc0ea7829e44a7854a47f3fcf8a17d1.zip |
adjustment to clear browser location button only if use browser location option is set
-rwxr-xr-x | view/tpl/jot.tpl | 2 | ||||
-rwxr-xr-x | view/tpl/jot_geotag.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 8d6b5ff91..34acce879 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -60,7 +60,7 @@ <i id="profile-location" class="icon-globe jot-icons"></i> </button> {{if $noloc}} - <button id="profile-nolocation-wrapper" class="btn btn-default btn-sm" style="display: none;" title="{{$noloc}}" onclick="jotClearLocation();return false;"> + <button id="profile-nolocation-wrapper" class="btn btn-default btn-sm" title="{{$noloc}}" onclick="jotClearLocation();return false;" disabled="disabled"> <i id="profile-nolocation" class="icon-circle-blank jot-icons"></i> </button> {{/if}} diff --git a/view/tpl/jot_geotag.tpl b/view/tpl/jot_geotag.tpl index 7a398b612..60f128850 100755 --- a/view/tpl/jot_geotag.tpl +++ b/view/tpl/jot_geotag.tpl @@ -1,7 +1,7 @@ if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { $('#jot-coord').val(position.coords.latitude + ' ' + position.coords.longitude); - $('#profile-nolocation-wrapper').show(); + $('#profile-nolocation-wrapper').attr('disabled', false); }); } |