Update ticket_list.html

Fix javascript buttons for bulk select all/none/inverse
This commit is contained in:
Benbb96 2020-06-19 10:05:29 +02:00 committed by GitHub
parent 630cfd9179
commit 1765eb7004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,16 +17,16 @@ $(document).ready(function() {
}); });
$("#select_all").click(function() { $("#select_all").click(function() {
$(".ticket_multi_select").attr('checked', true); $(".ticket_multi_select").prop('checked', true);
return false; return false;
}); });
$("#select_none").click(function() { $("#select_none").click(function() {
$(".ticket_multi_select").attr('checked', false); $(".ticket_multi_select").prop('checked', false);
return false; return false;
}); });
$("#select_inverse").click(function() { $("#select_inverse").click(function() {
$(".ticket_multi_select").each(function() { $(".ticket_multi_select").each(function() {
$(this).attr('checked', !$(this).attr('checked')); $(this).prop('checked', !$(this).prop('checked'));
}); });
return false; return false;
}); });