Disable annoying navbar behaviour
Navbar would link to the url "#" if the buttons is "active". Being nested inside some menu is annoying when you want to return to the toplevel
This commit is contained in:
parent
734a3b023f
commit
202f2ce12a
|
@ -17,7 +17,9 @@ function navbar($depth, $active = NULL) {
|
|||
//if ($caption !== 'Webmail') {
|
||||
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
|
||||
//}
|
||||
if ($isActive) $link = '#';
|
||||
|
||||
//if ($isActive) $link = '#';
|
||||
|
||||
$result .= "\t\t<li" . ($isActive ? ' class="active"' : '') . '>'
|
||||
. '<a href="' . $link . '">'
|
||||
. $caption
|
||||
|
|
Loading…
Reference in New Issue