From 3108ad743e514e932495f5f0a0b8bbcb1070400d Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Mon, 12 Aug 2024 19:15:04 +0000 Subject: [PATCH] Bug 36132: Allow to delete multiple patron lists on any page Content-Type: text/plain; charset=utf-8 Plan test : 1. Apply the patch. 2. Create at least 22 patron lists (Navigate to Tools > Patron lists > New patron list). 3. Select the lists you want to delete on the 2nd page 4. Click the "Delete selected lists" button. 5. Confirm that the selected lists have been deleted. 6. Ensure that the button cannot be used if no list is selected. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt index 9ab988997b..d876423de6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/lists.tt @@ -177,7 +177,7 @@ } }); - $(".select_patron").on("click", function() { + $(document).on("click", ".select_patron", function() { if($(this).is(':checked')){ $("#delete_selected_lists").attr("class","btn btn-default btn-sm"); selectedPatronLists.push($(this).data("patron-list-id")); -- 2.39.5