From b5bb402ca9c06fc7faeb6ae2a2e920d09900941b 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 --- .../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.11.0