Skip to content
Snippets Groups Projects
Verified Commit 845a19f3 authored by David Beniamine's avatar David Beniamine
Browse files

Fix ugly badground on submenu

parent 3e5656d3
Branches
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ function print_item($item, $class){
function build_menu($parent, $tree){
foreach($tree[$parent] as $i => $item){
$class=menu_active($item)?'active':'';
$class=menu_active($item)&&$parent==0?'active':'';
if(array_key_exists($item->id, $tree)){
echo '<li class="dropdown '.$class.'"><a class="dropdown-toggle" data-toggle="dropdown" href="#">'.menu_name($item).'<span class="caret"></span></a>';
echo '<ul class="dropdown-menu">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment