forked from Adleraci/adlerka.top
Merge branch 'main' of https://git.brn.systems/Adleraci/adlerka.top
This commit is contained in:
commit
0b3e6438e9
@ -145,7 +145,7 @@ function logout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initAjax() {
|
function initAjax() {
|
||||||
let links = document.querySelectorAll('.navsite_link, .navpage_link');
|
let links = document.querySelectorAll('.navsite_item, .navpage_item');
|
||||||
|
|
||||||
// Add click event listener to each link
|
// Add click event listener to each link
|
||||||
links.forEach(function (link) {
|
links.forEach(function (link) {
|
||||||
@ -153,8 +153,8 @@ function initAjax() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
// Get page and site information
|
// Get page and site information
|
||||||
let page = this.closest('.navpage_item').dataset.page;
|
let site = this.dataset.site;
|
||||||
let site = this.closest('.navsite_item').dataset.site;
|
let page = this.dataset.page;
|
||||||
|
|
||||||
if (site && page) {
|
if (site && page) {
|
||||||
navigateTo(site, page);
|
navigateTo(site, page);
|
||||||
|
Loading…
Reference in New Issue
Block a user