diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt index d110dcbe52..05036622a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/basket.tt @@ -322,7 +322,6 @@ [% INCLUDE js_includes.inc %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/cart.js") | $raw %] - [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/cart.js b/koha-tmpl/intranet-tmpl/prog/js/cart.js index 923ed3242a..fbf97fb6fe 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cart.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cart.js @@ -66,24 +66,21 @@ function batchModify(){ $(document).ready(function(){ $("#items-popover").popover(); - $("#CheckAll").click(function(){ - var checked = []; - $("#bookbag_form").checkCheckboxes("*", true).each( - function() { - $(this).change(); - } - ); - return false; + + $("#CheckAll").click(function (e) { + e.preventDefault(); + $(".select_record").each(function () { + $(this).prop("checked", true).change(); + }); }); - $("#CheckNone").click(function(){ - var checked = []; - $("#bookbag_form").unCheckCheckboxes("*",true).each( - function() { - $(this).change(); - } - ); - return false; + + $("#CheckNone").click(function (e) { + e.preventDefault(); + $(".select_record").each(function () { + $(this).prop("checked", false).change(); + }); }); + $(".holdsep").text("| "); $(".hold").text(_("Place hold")); $("#downloadcartc").empty();