Fix nav list
This commit is contained in:
parent
cc666c8361
commit
5537ef5522
1 changed files with 4 additions and 0 deletions
|
@ -539,6 +539,7 @@ function navigateTo(url, reload_container, force_new_page=false) {
|
||||||
$(document).prop('title', $(data).filter('title').text());
|
$(document).prop('title', $(data).filter('title').text());
|
||||||
renderKatex($(reload_container)[0]);
|
renderKatex($(reload_container)[0]);
|
||||||
onWindowReady();
|
onWindowReady();
|
||||||
|
registerNavList();
|
||||||
$('.xdsoft_datetimepicker').hide();
|
$('.xdsoft_datetimepicker').hide();
|
||||||
} else {
|
} else {
|
||||||
window.location.href = url;
|
window.location.href = url;
|
||||||
|
@ -726,7 +727,9 @@ function onWindowReady() {
|
||||||
registerNavigation();
|
registerNavigation();
|
||||||
registerPopper($('#nav-lang-icon'), $('#lang-dropdown'));
|
registerPopper($('#nav-lang-icon'), $('#lang-dropdown'));
|
||||||
registerPopper($('#user-links'), $('#userlink_dropdown'));
|
registerPopper($('#user-links'), $('#userlink_dropdown'));
|
||||||
|
}
|
||||||
|
|
||||||
|
function registerNavList() {
|
||||||
var $nav_list = $('#nav-list');
|
var $nav_list = $('#nav-list');
|
||||||
$('#navicon').click(function (event) {
|
$('#navicon').click(function (event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@ -769,6 +772,7 @@ function onWindowReady() {
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
onWindowReady();
|
onWindowReady();
|
||||||
|
registerNavList();
|
||||||
$(window).on('beforeunload', saveCurrentPageToSessionStorage);
|
$(window).on('beforeunload', saveCurrentPageToSessionStorage);
|
||||||
|
|
||||||
if (window.performance &&
|
if (window.performance &&
|
||||||
|
|
Loading…
Reference in a new issue