Quellcode durchsuchen

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

Toby Chui vor 3 Jahren
Ursprung
Commit
392796b243
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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;
                                 }