My app is working fine during development and the file download is working great.
Now after building the app with -production this code sipped fails. It tries to load some "/.js" file without an name ?!?
I have this in my view requires : ['Ext.form.FormPanel'],
The log messages are printed but the form submit fails with c is not a constructir
:(
onInvoiceDownloadButtonClicked : function(grid, rowIndex, colIndex, item, e, record) {
console.log('button pressed');
var fp = new Ext.form.FormPanel({
url : 'back/invoice/get/' + record.get('id'),
standardSubmit : true,
method : 'POST'
});
console.log(fp);
fp.form.submit();
}
Yes there is a synchronous loading warning but with .js ? No filename hmm