Explorar o código

Fixed path highlight css bug

Toby Chui %!s(int64=2) %!d(string=hai) anos
pai
achega
5dcbc58d59
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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");
                     }