forked from extern/django-helpdesk
Update ticket_list.html
Fix javascript buttons for bulk select all/none/inverse
This commit is contained in:
parent
630cfd9179
commit
1765eb7004
@ -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;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user