mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
[ticket/11956] Move code that hides dropdowns to assets
PHPBB3-11956
This commit is contained in:
@@ -939,15 +939,6 @@ function parse_document(container)
|
||||
$('#' + this.getAttribute('data-focus')).focus();
|
||||
});
|
||||
|
||||
// Hide active dropdowns when click event happens outside
|
||||
$('#phpbb').click(function(e) {
|
||||
|
||||
var parents = $(e.target).parents();
|
||||
if (!parents.is('.dropdown-container.dropdown-visible')) {
|
||||
$('.dropdown-container.dropdown-visible .dropdown-toggle').each(phpbb.toggleDropdown);
|
||||
}
|
||||
});
|
||||
|
||||
parse_document($('body'));
|
||||
});
|
||||
})(jQuery);
|
||||
|
Reference in New Issue
Block a user