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",
|
offLabel: "Zusammen",
|
||||||
onToggle: filterByTravelerClick
|
onToggle: filterByTravelerClick
|
||||||
});
|
});
|
||||||
|
jQuery('#travelers-extend-button').on('click', toggleExtendTravelers);
|
||||||
});
|
});
|
||||||
var markers = [];
|
var markers = [];
|
||||||
function initMap() {
|
function initMap() {
|
||||||
|
|
@ -101,3 +102,11 @@ 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;">
|
<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-filter-button">Filter</a>
|
||||||
<a class="button" style="color:white" id="travelers-reset-button">Reset</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" />
|
<input type="checkbox" id="toggle-and-or" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue