18 lines
556 B
JavaScript
Raw Normal View History

2022-04-19 18:43:58 -05:00
function updateFilters() {
location = `${location.href.split('?')[0]}?showOnly=${$('#penalty_filter_selection').val()}&hideAutomatedPenalties=${document.getElementById('hide_automated_penalties_checkbox').checked}`;
2019-07-19 14:54:39 -05:00
}
2022-04-19 18:43:58 -05:00
$(document).ready(function () {
const filterSelection = $('#penalty_filter_selection');
if (filterSelection) {
filterSelection.change(function () {
updateFilters();
2018-02-21 19:29:23 -06:00
});
2022-04-19 18:43:58 -05:00
$('#hide_automated_penalties_checkbox').click(function () {
updateFilters();
});
2022-04-19 18:43:58 -05:00
}
});