Commit f93e6fa5 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Ignore some errors for now

* Support passing of onSuccess params to our custom onSuccess function
parent 0e192cee
// FIXME
function storeLoadException(requestConfig, storeObj, xmlEr, except) {
/*
printStr = 'An exception occured while trying to load data.<br /><br /><br />';
printStr += '<b>Exception:</b> '+except.toString()+'<br />';
// add http status description
printStr += '<b>Service:</b> '+storeObj.url+'<br />';
printStr += '<b>Status:</b> '+xmlEr.status+' - '+xmlEr.statusText+'<br />';
*/
if (xmlEr.response && xmlEr.response.errors) {
// If this is a return object with errors, display them...
printStr += '<b>Response:</b>';
......@@ -107,10 +108,10 @@ Ext.ux.GenericFormWindow = function(windowConfig,formConfig,submitAjaxConfig) {
panel.submit({
params: ajaxParams,
// Close window on success
success: function() {
success: function(form,action) {
// Check if we have a custom function to execute on success
if (submitAjaxConfig.onSuccess) {
submitAjaxConfig.onSuccess();
submitAjaxConfig.onSuccess(form,action);
}
win.close();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment