change icons of locate buttons
This commit is contained in:
parent
6805f2fb5f
commit
93dd1d3e32
2 changed files with 8 additions and 3 deletions
|
@ -45,6 +45,7 @@ c3nav = {
|
||||||
if (window.mobileclient) {
|
if (window.mobileclient) {
|
||||||
$('#attributions').find('a:not([href^="http"]):not([href^="//"])').removeAttr('target');
|
$('#attributions').find('a:not([href^="http"]):not([href^="//"])').removeAttr('target');
|
||||||
$('body').addClass('mobileclient');
|
$('body').addClass('mobileclient');
|
||||||
|
c3nav._set_user_location(null);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
load_searchable_locations: function() {
|
load_searchable_locations: function() {
|
||||||
|
@ -1247,7 +1248,11 @@ c3nav = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
_set_user_location: function(location) {
|
_set_user_location: function(location) {
|
||||||
|
if (location) {
|
||||||
|
$('.locationinput .locate').text('my_location');
|
||||||
|
} else {
|
||||||
|
$('.locationinput .locate').text('location_searching');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$(document).ready(c3nav.init);
|
$(document).ready(c3nav.init);
|
||||||
|
|
|
@ -46,14 +46,14 @@
|
||||||
<i class="icon material-icons">place</i>
|
<i class="icon material-icons">place</i>
|
||||||
<input type="text" autocomplete="off" spellcheck="false" placeholder="{% trans 'Search any location…' %}">
|
<input type="text" autocomplete="off" spellcheck="false" placeholder="{% trans 'Search any location…' %}">
|
||||||
<small></small>
|
<small></small>
|
||||||
<button class="button-clear locate material-icons">my_location</button>
|
<button class="button-clear locate material-icons">location_disabled</button>
|
||||||
<button class="button-clear clear material-icons">clear</button>
|
<button class="button-clear clear material-icons">clear</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="location locationinput empty" id="destination-input">
|
<div class="location locationinput empty" id="destination-input">
|
||||||
<i class="icon material-icons">place</i>
|
<i class="icon material-icons">place</i>
|
||||||
<input type="text" autocomplete="off" spellcheck="false" placeholder="{% trans 'Search any location…' %}">
|
<input type="text" autocomplete="off" spellcheck="false" placeholder="{% trans 'Search any location…' %}">
|
||||||
<small></small>
|
<small></small>
|
||||||
<button class="button-clear locate material-icons">my_location</button>
|
<button class="button-clear locate material-icons">location_disabled</button>
|
||||||
<button class="button-clear clear material-icons">clear</button>
|
<button class="button-clear clear material-icons">clear</button>
|
||||||
</div>
|
</div>
|
||||||
<i class="material-icons" id="route-dots">more_vert</i>
|
<i class="material-icons" id="route-dots">more_vert</i>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue