mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Select/Deselect All buttons. Closes #25
This commit is contained in:
@@ -357,6 +357,18 @@ function setUpEventListeners() {
|
||||
$("#filters-button").button("toggle");
|
||||
$("#filters-area").hide();
|
||||
});
|
||||
$("#select-all-button").click(function() {
|
||||
$(".storeable-checkbox").each(function() {
|
||||
$(this).prop('checked', true);
|
||||
});
|
||||
filtersUpdated();
|
||||
});
|
||||
$("#deselect-all-button").click(function() {
|
||||
$(".storeable-checkbox").each(function() {
|
||||
$(this).prop('checked', false);
|
||||
});
|
||||
filtersUpdated();
|
||||
});
|
||||
}
|
||||
|
||||
// Startup
|
||||
|
||||
Reference in New Issue
Block a user