Fixed 'active'

This commit is contained in:
Allexit 2016-11-04 16:32:09 +02:00
parent cf1a03d8da
commit 74732b71be
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ function openPage(page, new_url, renew_history) {
}
slideOpacity(function () {
var link = document.getElementById(window.currPage + "-link");
var new_link = document.getElementById(window.currPage);
var new_link = document.getElementById(page + "-link");
console.log(new_link);
if (link) {
link.children[0].className = "";
}

View File

@ -52,7 +52,8 @@ function openPage(page: string, new_url: string = null, renew_history=true) {
slideOpacity(() => {
let link = document.getElementById(window.currPage + "-link");
let new_link = document.getElementById(window.currPage);
let new_link = document.getElementById(page + "-link");
console.log(new_link);
if (link) {
link.children[0].className = ""
} if (new_link) {