1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-04 08:54:44 +02:00

[ticket/11241] Add dropdown control button.

PHPBB3-11241
This commit is contained in:
Cesar G
2013-11-08 11:32:42 -08:00
parent 4684ba0869
commit 4b0410a9d9
6 changed files with 87 additions and 7 deletions
phpBB

@ -931,6 +931,14 @@ phpbb.toggleDropdown = function() {
return false;
};
/**
* Toggle dropdown submenu
*/
phpbb.toggleSubmenu = function(e) {
$(this).siblings('.dropdown-submenu').toggle();
e.preventDefault();
}
/**
* Register dropdown menu
* Shows/hides dropdown, decides which side to open to
@ -962,6 +970,7 @@ phpbb.registerDropdown = function(toggle, dropdown, options)
toggle.data('dropdown-options', ops);
toggle.click(phpbb.toggleDropdown);
$('.dropdown-toggle-submenu', ops.parent).click(phpbb.toggleSubmenu);
};
/**