]> git.koha-community.org Git - koha.git/commit
Bug 25251: Remove alert from disabled buttons
authorNick Clemens <nick@bywatersolutions.com>
Mon, 14 Mar 2022 17:05:56 +0000 (17:05 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Mar 2022 14:37:05 +0000 (10:37 -0400)
commit3f78c4d02590e033d4dabd6e6b395d0558afe683
tree51dd3e3993bba5068f7e6b6f59b7e05caa7bfee1
parent604d151b113707c61f2ed963b129425041bb3cc8
Bug 25251: Remove alert from disabled buttons

This patch removes the alert, but adds a stopPropagation call
in order to not close the menu when the disabled buttons are clicked

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, menu is closed
6 - Apply patch
7 - Reload page
8 - Click on each disabled option and confirm
    - there is no more alert
    - the menu does not close
9 - Confirm tooltip is displayed

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/catalog.js