Browse Source

#103 - loading indicator isn't disappearing in uploader

Alex Trofimov 12 năm trước cách đây
mục cha
commit
5ccc7e4051
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 2 2
      inc/js/classes/BxDolUploader.js

+ 2 - 2
inc/js/classes/BxDolUploader.js

@@ -103,10 +103,10 @@ BxDolUploaderSimple.prototype.onUploadCompleted = function (sErrorMsg) {
 
     this._isUploadsInProgress = false;
     this._unlockPageFromLeaving();
+    this._loading(false, true);
 
     if (sErrorMsg.length) {
-        this.restoreGhosts();
-        this._loading(false, true);
+        this.restoreGhosts();        
         this._showError(sErrorMsg);
     } else {        
         this.restoreGhosts();