浏览代码

Fixed path highlight css bug

Toby Chui 2 年之前
父节点
当前提交
5dcbc58d59
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/SystemAO/file_system/file_explorer.html

+ 2 - 2
web/SystemAO/file_system/file_explorer.html

@@ -832,8 +832,8 @@
                 //Highlight the target vroot name on the side bar
                 $(".vroot.active").removeClass("active");
                 $(".vroot").each(function(){
-                   let rootname = $(this).attr("rootname");
-                    if ((currentPath.toLowerCase()).startsWith((rootname.toLowerCase()) + ":/")){
+                   let rootname = $(this).attr("filepath");
+                    if ((currentPath.toLowerCase()).startsWith((rootname.toLowerCase()))){
                         //This is the root we are currently in
                         $(this).addClass("active");
                     }