Explorar el Código

Fixed path highlight css bug

Toby Chui hace 2 años
padre
commit
5dcbc58d59
Se han modificado 1 ficheros con 2 adiciones y 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");
                     }