Fix regression error for menu click behavior

Right-clicking or long-clicking a menu item should open the selected menu
This commit is contained in:
bergware
2022-03-20 08:55:01 +01:00
parent ccfa16e87f
commit 9a90f05387
@@ -421,11 +421,7 @@ foreach ($tasks as $button) {
$page = $button['name'];
echo "<div id='nav-item'";
echo $task==$page ? " class='active'>" : ">";
if ($themes2) {
echo "<a href=\"/$page\" onclick='initab()'>"._($button['Name'] ?? $page)."</a></div>";
} else {
echo "<a href='#' onclick='initab();window.location=\"/$page\"'>"._($button['Name'] ?? $page)."</a></div>";
}
echo "<a href=\"/$page\" onclick='initab();window.location=\"/$page\"'>"._($button['Name'] ?? $page)."</a></div>";
// create list of nchan scripts to be started
if (isset($button['Nchan'])) nchan_merge($button['root'], $button['Nchan']);
}