Merge pull request #837 from Benbb96/patch-1

Fix javascript buttons for bulk select all/none/inverse in ticket_list by using prop() instead of attr()
This commit is contained in:
Garret Wassermann 2020-07-07 11:53:13 -04:00 committed by GitHub
commit ee4b32254f
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() {
$(".ticket_multi_select").attr('checked', true);
$(".ticket_multi_select").prop('checked', true);
return false;
});
$("#select_none").click(function() {
$(".ticket_multi_select").attr('checked', false);
$(".ticket_multi_select").prop('checked', false);
return false;
});
$("#select_inverse").click(function() {
$(".ticket_multi_select").each(function() {
$(this).attr('checked', !$(this).attr('checked'));
$(this).prop('checked', !$(this).prop('checked'));
});
return false;
});