From 1e8996fe4e3e9f42250974413047afc9e0fef43a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 14 Aug 2019 15:18:41 +0800 Subject: [PATCH] Pman.Download.js --- Pman.Download.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Pman.Download.js b/Pman.Download.js index f8d1ca3a..53422696 100644 --- a/Pman.Download.js +++ b/Pman.Download.js @@ -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; -- 2.39.2