// error msg???
if (act.type == 'submit') {
- Ext.MessageBox.alert("Error", "Saving failed = fix errors and try again");
+ //Roo.log(act);
+ try {
+ Roo.MessageBox.alert("Error", act.result.errorMsg);
+ } catch(e) {
+ // Roo.log(e);
+ Roo.MessageBox.alert("Error", "Saving failed = fix errors and try again");
+ }
return;
}
// what about load failing..
- Ext.MessageBox.alert("Error", "Error loading details");
+ Roo.MessageBox.alert("Error", "Error loading details");
}
},
fileUpload : true,
xns: Roo.form,
name : 'UPLOAD_IDENTIFIER'
},
+ {
+ xtype: 'Hidden',
+ xns: Roo.form,
+ name : 'post_max_size',
+ value : "32M"
+ },
+ {
+ xtype: 'Hidden',
+ xns: Roo.form,
+ name : 'upload_max_filesize',
+ value : "32M"
+ },
{
xtype: 'TextField',
xns: Roo.form,
xtype: 'Hidden',
xns: Roo.form,
name : 'imgtype'
- },
- {
- xtype: 'Hidden',
- xns: Roo.form,
- name : 'post_max_size',
- value : "32M"
- },
- {
- xtype: 'Hidden',
- xns: Roo.form,
- name : 'upload_max_filesize',
- value : "32M"
}
]
}
_this.dialog.el.mask("Sending");
_this.dialog.uploadComplete = false;
_this.form.doAction('submit', {
- url: baseURL + '/Roo/Images.html',
- method: 'POST',
params: {
- // _id: 0 ,
ts : Math.random()
}
});