Improve style and add toggle event
This commit is contained in:
parent
ccb82e2812
commit
c84a83128c
1 changed files with 8 additions and 2 deletions
|
|
@ -14,9 +14,15 @@ jQuery('document').ready(function(){
|
|||
// reinit map in case google maps loaded before this script did
|
||||
initMap();
|
||||
}
|
||||
jQuery('#travelers-filter-button, #toggle-and-or').on('click', filterByTravelerClick);
|
||||
jQuery('#travelers-filter-button').on('click', filterByTravelerClick);
|
||||
jQuery('#travelers-reset-button').on('click', resetFilter);
|
||||
jQuery('#toggle-and-or').toggleSwitch();
|
||||
jQuery('#toggle-and-or').toggleSwitch({
|
||||
width: "100px",
|
||||
height: "40px",
|
||||
onLabel: "Insgesamt",
|
||||
offLabel: "Zusammen",
|
||||
onToggle: filterByTravelerClick
|
||||
});
|
||||
});
|
||||
var markers = [];
|
||||
function initMap() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue