forked from extern/django-helpdesk
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:
commit
ee4b32254f
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user