From: Alan Knowles Date: Wed, 14 Aug 2019 07:09:24 +0000 (+0800) Subject: Changed Pman.Gnumeric.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1ef274bafbdc8b8062a2f1b5d313eaa3ba42f27c Changed Pman.Gnumeric.js --- diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index a7d77f1c..de5fd975 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1709,6 +1709,7 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { } var ser = new XMLSerializer(); + Roo.get(document.body).mask("Downloading"); var x = new Pman.Download({ method: 'POST', timeout : 120000, // quite a long wait.. 2 minutes. @@ -1720,11 +1721,16 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { }, url : (this.downloadURL || (baseURL + '/GnumericToExcel/')) + name + '.xls', success : function() { + Roo.get(document.body).unmask(); Roo.MessageBox.alert("Alert", "File should have downloaded now"); if (callback) { callback(); } - } + }, + failure : function() { + Roo.get(document.body).unmask(); + Roo.MessageBox.alert("Alert", "Download failed"); + } }); }