Forráskód Böngészése

#103 - loading indicator isn't disappearing in uploader

Alex Trofimov 12 éve
szülő
commit
5ccc7e4051
1 módosított fájl, 2 hozzáadás és 2 törlés
  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._isUploadsInProgress = false;
     this._unlockPageFromLeaving();
     this._unlockPageFromLeaving();
+    this._loading(false, true);
 
 
     if (sErrorMsg.length) {
     if (sErrorMsg.length) {
-        this.restoreGhosts();
-        this._loading(false, true);
+        this.restoreGhosts();        
         this._showError(sErrorMsg);
         this._showError(sErrorMsg);
     } else {        
     } else {        
         this.restoreGhosts();
         this.restoreGhosts();