From 2f7a0ba131f8c67e8b00bb7b60dc91c5f63f34c1 Mon Sep 17 00:00:00 2001 From: Yanjun Li Date: Fri, 15 Nov 2024 23:14:55 +0000 Subject: [PATCH] Bug 38302: (follow-up) Remove duplicate click handler and modify button class This follow-up patch removes the unnecessarily added click handler, and modifies the delete button class. The confirmation dialog and delete function work. --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 3 --- .../prog/en/modules/virtualshelves/tables/shelves_results.tt | 2 +- 2 files changed, 1 insertion(+), 4 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 d8167a1fca..c9c06745b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -702,9 +702,6 @@ $("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' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt index de301479f3..bc69d39d52 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt @@ -54,7 +54,7 @@ [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] - [%~ action_block = action_block _ '' ~%] + [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] [%~ END ~%] [%~ IF public AND allow_transfer ~%] -- 2.39.5