Add extend button for travelers on pins page
This commit is contained in:
parent
7065017237
commit
9184bad823
2 changed files with 10 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ jQuery('document').ready(function(){
|
|||
offLabel: "Zusammen",
|
||||
onToggle: filterByTravelerClick
|
||||
});
|
||||
jQuery('#travelers-extend-button').on('click', toggleExtendTravelers);
|
||||
});
|
||||
var markers = [];
|
||||
function initMap() {
|
||||
|
|
@ -100,4 +101,12 @@ function filterMarkersByTravelersOr(travelers){
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function toggleExtendTravelers() {
|
||||
jQuery('#travelers-select li').filter(function(i){
|
||||
return jQuery(this).text().indexOf(' ') !== -1;
|
||||
}).each(function(i){
|
||||
jQuery(this).toggle();
|
||||
});
|
||||
}
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
<div style="clear: both; float: left; display: block; position: relative;margin-top: 20px;">
|
||||
<a class="button" style="color:white" id="travelers-filter-button">Filter</a>
|
||||
<a class="button" style="color:white" id="travelers-reset-button">Reset</a>
|
||||
<a class="button" style="color:white" id="travelers-extend-button">Erweitert</a>
|
||||
<input type="checkbox" id="toggle-and-or" />
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue