1
0
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:
Vjacheslav Trushkin
2013-10-26 16:35:59 +03:00
parent 368b3f0d9e
commit c521380273
2 changed files with 19 additions and 10 deletions

View File

@@ -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);