소스 검색

Fixed minor css bug on hiding remove uplaod button during FORM POST Upload mode

Toby Chui 3 년 전
부모
커밋
52b58b3ea4
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      web/SystemAO/file_system/file_explorer.html

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

@@ -4928,6 +4928,14 @@
                 formData.append('file', file);
                 formData.append('path', uploadCurrentPath);
 
+                //Hide the cancel upload task button
+                $(".uploadTask").each(function(){
+                    if ($(this).attr("taskID") == taskUUID){
+                        //This is the target upload task object. Hide its close button
+                        $(this).find(".uploadTaskRemoveIcon").hide();
+                    }
+                });
+
                 xhr.open('POST', url, true)
                 xhr.upload.addEventListener("progress", function(e) {
                     var progress = (e.loaded * 100.0 / e.total) || 100;