Select/Deselect All buttons. Closes #25

This commit is contained in:
Ian Renton
2025-10-03 20:52:54 +01:00
parent 9266854c11
commit df34b97efe
2 changed files with 17 additions and 0 deletions

View File

@@ -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