adjustment to clear browser location button only if use browser location option is set
This commit is contained in:
parent
242713ebef
commit
cc365513ed
@ -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}}
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user