//Snippet from ~ln 186 BasicForm.js // private afterAction : function(action, success){ this.activeAction = null; var o = action.options; if(o.waitMsg){ if(this.waitMsgTarget === true){ this.el.unmask(); }else if(this.waitMsgTarget){ this.waitMsgTarget.unmask(); }else{ Ext.MessageBox.updateProgress(1); Ext.MessageBox.hide(); } } if(success){ if(o.reset){ this.reset(); } Ext.callback(o.success, o.scope, [this, action]); //<---BOTH THE SUCCESS CALLBACK AND ACTIONCOMPLETE RECEIVE form, action ... AS IS THE SAME CASE WITH FAILURE/ACTIONFAILED this.fireEvent('actioncomplete', this, action); //<-----| }else{ Ext.callback(o.failure, o.scope, [this, action]); this.fireEvent('actionfailed', this, action); } },