Fixed .active hacks in header
This commit is contained in:
parent
8403dc832b
commit
36bd4e4344
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ namespace Ksp.WebServer
|
||||||
encyklopedie.SetAttribute("href", "/grafik");
|
encyklopedie.SetAttribute("href", "/grafik");
|
||||||
if ("grafik" == path)
|
if ("grafik" == path)
|
||||||
{
|
{
|
||||||
|
foreach (var li in document.QuerySelectorAll("#menu ul li.active"))
|
||||||
|
li.ClassList.Remove("active");
|
||||||
encyklopedie.ParentElement.ClassList.Add("active");
|
encyklopedie.ParentElement.ClassList.Add("active");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue