Просмотр исходного кода

#103 - loading indicator isn't disappearing in uploader

Alex Trofimov 12 лет назад
Родитель
Сommit
5ccc7e4051
1 измененных файлов с 2 добавлено и 2 удалено
  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();