IW4M-Admin/WebfrontCore/wwwroot/js/penalty.js

18 lines
556 B
JavaScript
Raw Normal View History

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
});
2022-04-19 19:43:58 -04:00
$('#hide_automated_penalties_checkbox').click(function () {
updateFilters();
});
2022-04-19 19:43:58 -04:00
}
});