From 32d3d5e8c807dedd80ca5a9e1eeb824dae0c0633 Mon Sep 17 00:00:00 2001 From: Yanjun Li Date: Mon, 4 Nov 2024 22:21:48 +0000 Subject: [PATCH] Bug 38302: Add delete confirmation dialog To test: 1. Create a list in the staff interface 2. Go to lists 3. See "Your lists" tab and find "Delete" button in "Actions" col, click "delete", no confirmation dialog pop up 4. Create another list 5. Go to lists and view the list detail 6. See "Edit" dropdown and click "Delete Lists" button, see confirmation dialog pop up 7. Apply patch 8. Try step 1 through 3 again 9. "Delete" button in "actions" column has the same confirmation dialog, and delete function works Signed-off-by: Lucas Gass Signed-off-by: Brendan Lawlor --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 3 +++ 1 file changed, 3 insertions(+) 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 926afb5c1f..289c95e888 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -701,6 +701,9 @@ $("body").on("click", ".deleteshelf", function(){ return confirmDelete(MSG_CONFIRM_DELETE_LIST); }); + $("body").on("click", ".delete-list",function(){ + return confirm(_("Are you sure you want to delete this list?")); + }); }); [% END # /IF op == 'list' %] -- 2.39.5