forked from Wavyzz/dolibarr
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
|
||||
jQuery(document).on("click", function(event) {
|
||||
// search if click was outside drop down
|
||||
if (!$(event.target).closest('.butAction.dropdown-toggle').length) {
|
||||
let parentholder = jQuery(".butAction.dropdown-toggle").closest(".dropdown.open");
|
||||
if (!$(event.target).closest('.dropdown-toggle').length) {
|
||||
let parentholder = jQuery(".dropdown-toggle").closest(".dropdown.open");
|
||||
if(parentholder){
|
||||
// Hide the menus.
|
||||
parentholder.removeClass("open");
|
||||
|
||||
Reference in New Issue
Block a user