From 44603d5d2c2344d0f7da4bbbc04a72461bd2e98d 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 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. --- 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 29fd544762..1b23b3aecb 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.34.1