diff --git a/assets/script.js b/assets/script.js index a48353d..4cf89c6 100644 --- a/assets/script.js +++ b/assets/script.js @@ -145,7 +145,7 @@ function logout() { } function initAjax() { - let links = document.querySelectorAll('.navsite_item, .navpage_item'); + let links = document.querySelectorAll('.navsite_link, .navpage_link'); // Add click event listener to each link links.forEach(function (link) { diff --git a/lib/navigation.php b/lib/navigation.php index 4f1609d..9c17cb5 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -83,12 +83,12 @@ function generateNavigation(): string } if($page_required_permission <= $_SESSION["privilege_level"]) { - $navpages .= "