mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
18 lines
556 B
JavaScript
18 lines
556 B
JavaScript
function updateFilters() {
|
|
location = `${location.href.split('?')[0]}?showOnly=${$('#penalty_filter_selection').val()}&hideAutomatedPenalties=${document.getElementById('hide_automated_penalties_checkbox').checked}`;
|
|
}
|
|
|
|
$(document).ready(function () {
|
|
const filterSelection = $('#penalty_filter_selection');
|
|
|
|
if (filterSelection) {
|
|
filterSelection.change(function () {
|
|
updateFilters();
|
|
});
|
|
|
|
$('#hide_automated_penalties_checkbox').click(function () {
|
|
updateFilters();
|
|
});
|
|
}
|
|
});
|