diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt index e9cdad3b3e..a6fe072d2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -397,16 +397,15 @@ return false; }); - var checkboxes = $("#inventoryt input:checkbox"); $(".checkall").click(function(e){ e.preventDefault(); - checkboxes.each(function(){ + $("#inventoryt input:checkbox").each(function(){ $(this).prop("checked", true); }); }); $(".clearall").click(function(e){ e.preventDefault(); - checkboxes.each(function(){ + $("#inventoryt input:checkbox").each(function(){ $(this).prop("checked", false); }); });