mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 08:02:22 +01:00
extend drop down behavior to all drop down (#30933)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -1340,8 +1340,8 @@ jQuery(document).ready(function() {
|
|||||||
// Close drop down
|
// Close drop down
|
||||||
jQuery(document).on("click", function(event) {
|
jQuery(document).on("click", function(event) {
|
||||||
// search if click was outside drop down
|
// search if click was outside drop down
|
||||||
if (!$(event.target).closest('.butAction.dropdown-toggle').length) {
|
if (!$(event.target).closest('.dropdown-toggle').length) {
|
||||||
let parentholder = jQuery(".butAction.dropdown-toggle").closest(".dropdown.open");
|
let parentholder = jQuery(".dropdown-toggle").closest(".dropdown.open");
|
||||||
if(parentholder){
|
if(parentholder){
|
||||||
// Hide the menus.
|
// Hide the menus.
|
||||||
parentholder.removeClass("open");
|
parentholder.removeClass("open");
|
||||||
|
|||||||
Reference in New Issue
Block a user