Browse Source

Fixed path highlight css bug

Toby Chui 2 years ago
parent
commit
5dcbc58d59
1 changed files with 2 additions and 2 deletions
  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");
                     }