1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-15 06:06:32 +02:00

[ticket/11957] Adjustments to ACP layout, menu and some elements

PHPBB3-11957
This commit is contained in:
Vjacheslav Trushkin
2013-10-25 21:40:39 +03:00
parent 43b9314390
commit 1b3daa1ad8
2 changed files with 68 additions and 7 deletions
phpBB/adm/style

@ -15,11 +15,27 @@ function parse_document(container)
/**
* Navigation
*/
container.find('#menu .menu-block > a.header').click(function() {
$(this).parent().toggleClass('active');
});
container.find('#menu').each(function() {
var menu = $(this),
blocks = menu.children('.menu-block');
container.find('#activemenu').parents('.menu-block').addClass('active');
if (!blocks.length) {
return;
}
// Set onclick event
blocks.children('a.header').click(function() {
$(this).parent().toggleClass('active');
});
// Set active menu
menu.find('#activemenu').parents('.menu-block').addClass('active');
// Check if there is active menu
if (!blocks.filter('.active').length) {
blocks.filter(':first').addClass('active');
}
});
}
/**