Commit 3fd692b3 authored by Dries's avatar Dries

- Patch #767478 by derjochenmeyer: menu li.leaf items get expanded (li.expanded) when active.

parent 542ceec1
......@@ -922,8 +922,10 @@ function menu_tree_output($tree) {
if ($i == $num_items - 1) {
$class[] = 'last';
}
// Set a class if the link has children.
if ($data['below']) {
// Set a class for the <li>-tag. Since $data['below'] may contain local
// tasks, only set 'expanded' class if the link also has children within
// the current menu.
if ($data['link']['has_children'] && $data['below']) {
$class[] = 'expanded';
}
elseif ($data['link']['has_children']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment