Fixed 'active'
This commit is contained in:
parent
cf1a03d8da
commit
74732b71be
@ -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 = "";
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user