浏览代码

Fixded path list bug

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

+ 0 - 3
web/SystemAO/file_system/file_explorer.css

@@ -403,9 +403,6 @@ body{
     opacity: 0.9;
     opacity: 0.9;
 }
 }
 
 
-.fileviewList .fileObject.card .shareOverlay.visible:hover{
-    /*opacity: 0.6;*/
-}
 
 
 .fileviewList .fileObject.card .content .header{
 .fileviewList .fileObject.card .content .header{
     font-size: 1.2em;
     font-size: 1.2em;

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

@@ -1201,7 +1201,7 @@
                                     icon = "blue folder";
                                     icon = "blue folder";
                                     break;
                                     break;
                                 case "module":
                                 case "module":
-                                    icon = "play circle";
+                                    icon = "blue play circle";
                                     break;
                                     break;
                                 default: 
                                 default: 
                                     icon = "external";
                                     icon = "external";
@@ -2549,9 +2549,11 @@
                 $(".pathDisplay").append(`<div class="divider">/</div>`);
                 $(".pathDisplay").append(`<div class="divider">/</div>`);
                 //console.log(pathInfo);
                 //console.log(pathInfo);
                 let domPathChunks = [];
                 let domPathChunks = [];
+                let thisPath = vdID + "/";
                 for(var i = 1; i < pathInfo.length; i++){
                 for(var i = 1; i < pathInfo.length; i++){
                     let thisname = pathInfo[i];
                     let thisname = pathInfo[i];
-                    domPathChunks.push(`<div class="section selectable"  onclick="event.stopImmediatePropagation(); parentDir();">${shortenLongFoldername(thisname, 20)}</div>`);
+                    thisPath += thisname + "/";
+                    domPathChunks.push(`<div class="section selectable" onclick="event.stopImmediatePropagation(); listDirectory('${thisPath}');">${shortenLongFoldername(thisname, 20)}</div>`);
                 }
                 }
 
 
                 let fullpath = domPathChunks.join(`<div class="divider">/</div>`);
                 let fullpath = domPathChunks.join(`<div class="divider">/</div>`);