From 36db6132bf3088c3a8f19f333b924c553739350b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 14 Mar 2022 17:05:56 +0000 Subject: [PATCH] Bug 25251: Remove alert from disabled buttons To test: 1 - Find a record with items in the staff interface 2 - Click edit 3 - Note 'Edit items in a batch, 'Delete items in a batch', and 'Delete all items' are grayed out 4 - Note hovering displays a note that there are no items 5 - Click on each anyway, an alert is generated 6 - Apply patch 7 - Reload page 8 - Confirm no more alert 9 - Confirm tooltip is displayed --- koha-tmpl/intranet-tmpl/prog/js/catalog.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/catalog.js b/koha-tmpl/intranet-tmpl/prog/js/catalog.js index 2d63aecb81..d3e6b9d9fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/catalog.js +++ b/koha-tmpl/intranet-tmpl/prog/js/catalog.js @@ -123,10 +123,6 @@ $(document).ready(function() { $("#export").remove(); // Hide embedded export form if JS menus available $("#deletebiblio").tooltip(); $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled") - .on("click",function(e){ - e.preventDefault(); - alertNoItems(); - }) .tooltip(); $(".addtolist").on("click", function (e) { -- 2.30.2