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:
Peder Bergebakken Sundt 2018-08-09 00:33:14 +02:00
parent 734a3b023f
commit 202f2ce12a
1 changed files with 3 additions and 1 deletions

View File

@ -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