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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

fix(webui): make mods tab active while editing U5 mods (#3937)

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

bf02ceb8
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -1
Modified static/webui/script.js +4 -1
@@ -409,7 +409,10 @@ single.on("route_load", function (event) {
409 409
410 410 let navPath = event.route.paths[0];
411 411 if (navPath == "/webui/detailedView") {
412 navPath = "/webui/inventory";
412 const params = new URLSearchParams(window.location.search);
413 const category = params.get("productCategory");
414
415 navPath = category == "Upgrades" ? "/webui/mods" : "/webui/inventory";
413 416 }
414 417 $("#sidebar .nav-link").removeClass("active");
415 418 const navLink = document.querySelector(".nav-link[href='" + navPath + "']");