From d9d5edb22aa6701debee402bd39dca76358568a6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 13 Aug 2020 13:54:54 +0000 Subject: [PATCH] Bug 26204: Remove the use of jquery.checkboxes plugin from staff interface lists This patch removes the use of the jquery.checkboxes plugin from the staff interface lists page. To test, apply the patch, go to Lists, and view the contents of a list with multiple titles on it. Check that the "Select all" and "Clear all" links work correctly. Signed-off-by: Amit Gupta Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 2de2b1330f540ef9482c1ed547b111757f0a551a) Signed-off-by: Lucas Gass --- .../prog/en/modules/virtualshelves/shelves.tt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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(); -- 2.39.5