X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Gnumeric.js;h=eb0675b58d5d991b6789d418022fb5de9aad9a8c;hb=refs%2Fheads%2Fwip_alan_T6312_php7_fixes;hp=a7d77f1c20c32c8f62b0add25acb519be600208b;hpb=535abee24e48a1df9523e0353730c303aaa882b3;p=Pman.Core diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index a7d77f1c..eb0675b5 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1709,22 +1709,28 @@ 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. params : { xml : ser.serializeToString(this.doc), - format : 'xls', //xml + format : 'xlsx', //xml debug : 0 }, 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"); + } }); }