From b0fefdf43d7dd676157ffab0404d808a37e95066 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 --- .../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 5beada8..fddb934 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.7.4