From 5537ef552252d3d1f5fab056e1c4d6c2b0ccba4b Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 1 Jul 2024 15:03:09 -0500 Subject: [PATCH] Fix nav list --- resources/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/common.js b/resources/common.js index cdf3933..47ad467 100644 --- a/resources/common.js +++ b/resources/common.js @@ -539,6 +539,7 @@ function navigateTo(url, reload_container, force_new_page=false) { $(document).prop('title', $(data).filter('title').text()); renderKatex($(reload_container)[0]); onWindowReady(); + registerNavList(); $('.xdsoft_datetimepicker').hide(); } else { window.location.href = url; @@ -726,7 +727,9 @@ function onWindowReady() { registerNavigation(); registerPopper($('#nav-lang-icon'), $('#lang-dropdown')); registerPopper($('#user-links'), $('#userlink_dropdown')); +} +function registerNavList() { var $nav_list = $('#nav-list'); $('#navicon').click(function (event) { event.stopPropagation(); @@ -769,6 +772,7 @@ function onWindowReady() { $(function() { onWindowReady(); + registerNavList(); $(window).on('beforeunload', saveCurrentPageToSessionStorage); if (window.performance &&