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