]> git.koha-community.org Git - koha.git/commit
Bug 31653: Correct event names passed to jQuery on() function
authorOwen Leonard <oleonard@myacpl.org>
Thu, 29 Sep 2022 12:20:30 +0000 (12:20 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 11:33:20 +0000 (08:33 -0300)
commit6a3bded6d3597128bcad3477dbf152abe189eb44
tree592ea5ab15a45bbdf3c9bee0fb79eb4012b5a889
parenta5104a8562448c50e90813085d88da188ec382a7
Bug 31653: Correct event names passed to jQuery on() function

This patch replaces the obsolete .on("hover") with .on("mouseenter
mouseleave"). This will allow the code to work again following the last
jQuery upgrade.

See Bug 20217 for discussion of the original implementation:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20217#c14

To test, apply the patch and go to the staff interface. Hover your mouse
over the "Search" link in the header menu. The adjacent dropdown menu
button should have its hover state triggered.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js