From 202f2ce12a733f4ce979daf667dcd5148651ebda Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 9 Aug 2018 00:33:14 +0200 Subject: [PATCH] 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 --- inc/navbar.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/navbar.php b/inc/navbar.php index fa89c4b..3393e7a 100644 --- a/inc/navbar.php +++ b/inc/navbar.php @@ -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' . '' . $caption