소스 검색

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");
                     }