// we wil only support AA not AAA
var top = Math.floor(c/26);
var bot = c % 26;
- var cc = top > 0 ? String.fromCharCode('A'.charCodeAt(0) + top) : '';
+ var cc = top > 0 ? String.fromCharCode('A'.charCodeAt(0) + (top-1)) : '';
cc += String.fromCharCode('A'.charCodeAt(0) + bot);
return cc+'' +r;
}
var ser = new XMLSerializer();
- Roo.get(document.body).mask("Downloading");
+ Roo.get(document.body).mask("Downloading");
var x = new Pman.Download({
method: 'POST',
- timeout : 120000, // quite a long wait.. 2 minutes.
+ timeout :240000, // quite a long wait.. 2 minutes.
params : {
xml : ser.serializeToString(this.doc),
format : this.format,
},
url : (this.downloadURL || (baseURL + '/GnumericToExcel/')) + name + '.xls',
success : function() {
- Roo.get(document.body).unmask();
+ 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");
- }
+ failure : function() {
+ Roo.get(document.body).unmask();
+ Roo.MessageBox.alert("Alert", "Download failed");
+ }
});
}