XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix(webui): switching routes resets active tab for "add items" (#2733)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2733 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

92211785
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified static/webui/script.js +1 -1
@@ -190,7 +190,7 @@ single.on("route_load", function (event) {
190 190 $("body").removeClass("logged-in");
191 191 }
192 192
193 $(".nav-link").removeClass("active");
193 $("#sidebar .nav-link").removeClass("active");
194 194 const navLink = document.querySelector(".nav-link[href='" + event.route.paths[0] + "']");
195 195 if (navLink) {
196 196 navLink.classList.add("active");