浏览代码

Fixed search escape bug in File Manager when opening vroot in search mode

tobychui 4 年之前
父节点
当前提交
7ab56bcc45
共有 3 个文件被更改,包括 410 次插入192 次删除
  1. 1 2
      mod/filesystem/metadata/common.go
  2. 6 0
      web/SystemAO/file_system/file_explorer.html
  3. 403 190
      web/img/system/folder-preview.ai

+ 1 - 2
mod/filesystem/metadata/common.go

@@ -4,7 +4,6 @@ import (
 	"bufio"
 	"encoding/base64"
 	"errors"
-	"fmt"
 	"io/ioutil"
 	"log"
 	"net/http"
@@ -139,7 +138,7 @@ func mtime(filename string) int64 {
 	file, err := os.Stat(filename)
 
 	if err != nil {
-		fmt.Println(err)
+		return 0
 	}
 
 	modifiedtime := file.ModTime()

+ 6 - 0
web/SystemAO/file_system/file_explorer.html

@@ -1443,6 +1443,10 @@
                     recordPreviousPage = false;
                 }
 
+                if (searchMode){
+                    hideSearchBar(true);
+                }
+
                 //Backup the current selected files if it is an refresh operation
                 let selectedFiles = [];
                 if (path == currentPath){
@@ -1471,12 +1475,14 @@
                 window.location.hash = path;
                 updatePathDisplay(path);
                 currentPath = path;
+
                 //Update floatWindow title if exists
                 if (ao_module_virtualDesktop){
                     var tmp = path.split("/");
                     tmp.pop();
                     ao_module_setWindowTitle(applocale.getString("title/title", "File Manager") + " - " + tmp.pop());
                 }
+
                 //Check if there are parent path for curret path
                 if (checkIfParentDirExists(currentPath)){
                     $("#ppbtn").removeClass("disabled");

文件差异内容过多而无法显示
+ 403 - 190
web/img/system/folder-preview.ai


部分文件因为文件数量过多而无法显示