瀏覽代碼

Fixed File Manager will not perform callback on listing empty directory bug

Toby Chui 3 年之前
父節點
當前提交
392796b243
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      web/SystemAO/file_system/file_explorer.html

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

@@ -1525,9 +1525,12 @@
                                 //Parse the filelist into global variable
                                 currentFilelist = [];
                                 if (data === null){
-                                    //There is nothing is this folder.
+                                    //There is nothing in this folder.
                                     $("#folderList").hide();
                                     $("#fileList").hide();
+                                    if (callback !== undefined){
+                                        callback();
+                                    }
                                     return;
                                 }