Pman.Download.js
authorAlan Knowles <alan@roojs.com>
Wed, 14 Aug 2019 07:18:41 +0000 (15:18 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Aug 2019 07:18:41 +0000 (15:18 +0800)
Pman.Download.js

index f8d1ca3..5342269 100644 (file)
@@ -191,7 +191,9 @@ Roo.apply(Pman.Download.prototype, {
                   
                 Roo.MessageBox.alert("Download Error", doc.body.innerHTML);
                 success  = false;
-                 
+                if (this.failure) {
+                    this.failure();
+                }
                 
             }
             
@@ -202,6 +204,9 @@ Roo.apply(Pman.Download.prototype, {
             Roo.log(e.toString());
             Roo.log(e);
         }
+        if (this.success) {
+            this.success();
+        }
         // we can not actually do anything with the frame... as it may actually still be downloading..
         return true;