diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
index 5beada8871..fddb934918 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
@@ -544,13 +544,18 @@
});
$("span.clearall").html(""+_(" Clear all")+"<\/a>");
$("span.checkall").html(""+_(" Select all")+"<\/a>");
- $("#CheckAll").click(function(){
- $(".checkboxed").checkCheckboxes();
- return false;
+ $("#CheckAll").click(function(e){
+ e.preventDefault();
+ $(".selection").each(function(){
+ $(this).prop("checked", true);
+ });
});
- $("#CheckNone").click(function(){
- $(".checkboxed").unCheckCheckboxes();
- return false;
+
+ $("#CheckNone").click(function(e){
+ e.preventDefault();
+ $(".selection").each(function(){
+ $(this).prop("checked", false);
+ });
});
$(".placehold").on("click",function(e){
placeHold();