1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 12:35:55 +02:00

[ticket/16237] rework navbar-footer css only no js

PHPBB3-16237
This commit is contained in:
hanakin
2020-05-07 11:38:52 -10:00
parent dd25ed1155
commit 21bef051af
3 changed files with 115 additions and 66 deletions

View File

@ -1379,7 +1379,7 @@ phpbb.dropdownVisibleContainers = '.dropdown-container.dropdown-visible';
* Dropdown toggle event handler
* This handler is used by phpBB.registerDropdown() and other functions
*/
phpbb.toggleDropdown = function() {
phpbb.toggleDropdown = function(event_) {
var $this = $(this),
options = $this.data('dropdown-options'),
parent = options.parent,
@ -1387,6 +1387,9 @@ phpbb.toggleDropdown = function() {
direction;
if (!visible) {
// Prevent link default action
event_.preventDefault();
event_.stopPropagation();
// Hide other dropdown menus
$(phpbb.dropdownHandles).each(phpbb.toggleDropdown);