click route button
This commit is contained in:
parent
b5337af65e
commit
9bdea3b4b4
2 changed files with 9 additions and 3 deletions
|
@ -13,7 +13,13 @@ c3nav = {
|
||||||
|
|
||||||
init_sidebar: function () {
|
init_sidebar: function () {
|
||||||
c3nav.init_locationinputs();
|
c3nav.init_locationinputs();
|
||||||
|
|
||||||
|
$('#location-buttons').find('.route').on('click', c3nav._location_buttons_route_click);
|
||||||
},
|
},
|
||||||
|
_location_buttons_route_click: function () {
|
||||||
|
$('#search').removeClass('location-view').addClass('route-view');
|
||||||
|
},
|
||||||
|
|
||||||
init_locationinputs: function () {
|
init_locationinputs: function () {
|
||||||
c3nav.locations = [];
|
c3nav.locations = [];
|
||||||
c3nav.locations_by_slug = {};
|
c3nav.locations_by_slug = {};
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
<button class="button-clear clear"></button>
|
<button class="button-clear clear"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons" id="location-buttons">
|
<div class="buttons" id="location-buttons">
|
||||||
<button class="button-clear">Details</button>
|
<button class="button-clear details">Details</button>
|
||||||
<button class="button-clear">Share</button>
|
<button class="button-clear share">Share</button>
|
||||||
<button class="button-clear">Route</button>
|
<button class="button-clear route">Route</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons" id="route-buttons">
|
<div class="buttons" id="route-buttons">
|
||||||
<button class="button-clear">swap</button>
|
<button class="button-clear">swap</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue