Browse Source

Fixed file explorer download one folder bug

TC pushbot 5 4 năm trước cách đây
mục cha
commit
b2050415f4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/SystemAO/file_system/file_explorer.html

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

@@ -2730,7 +2730,7 @@
                     var downloadURL = "/media?file=" + encodeURIComponent($(".fileObject.selected").attr("filepath")) + "&download=true";
                     var filename = $(".fileObject.selected").attr("filename");
                     generateDownloadFromURL(downloadURL,escape(filename));
-                }else if ($(".fileObject.selected").length > 1){
+                }else if ($(".fileObject.selected").length > 1 || ($(".fileObject.selected").length == 1 && $(".fileObject.selected").attr("type") == "folder")){
                     //Do zip and download for multiple files
                     $(".fileObject.selected").each(function(){
                         fileList.push($(this).attr("filepath"));