X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fform%2FAction.js;fp=Roo%2Fform%2FAction.js;h=59c5dad4d349c1955b3ac703cd8c5a534dec2079;hb=3809347c8003225f3d55f11104b3aff8191b1f32;hp=2ce1b51865a0f0b374ebed6b301213e5a9a1f068;hpb=7898cefff4301c31417a6027f5f0f024f8e5d5f7;p=roojs1 diff --git a/Roo/form/Action.js b/Roo/form/Action.js index 2ce1b51865..59c5dad4d3 100644 --- a/Roo/form/Action.js +++ b/Roo/form/Action.js @@ -67,6 +67,7 @@ Roo.form.Action.prototype = { // default connection failure failure : function(response){ + this.response = response; this.failureType = Roo.form.Action.CONNECT_FAILURE; this.form.afterAction(this, false); @@ -215,6 +216,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, { } + Roo.Ajax.request(Roo.apply(this.createCallback(), { form:this.form.el.dom, url:this.getUrl(!isPost), @@ -238,6 +240,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, { Roo.MessageBox.hide(); } + var result = this.processResponse(response); if(result === true || result.success){ this.form.afterAction(this, true); @@ -256,6 +259,7 @@ Roo.extend(Roo.form.Action.Submit, Roo.form.Action, { Roo.MessageBox.hide(); } + this.response = response; this.failureType = Roo.form.Action.CONNECT_FAILURE; this.form.afterAction(this, false); @@ -304,6 +308,7 @@ Roo.extend(Roo.form.Action.Load, Roo.form.Action, { type : 'load', run : function(){ + Roo.Ajax.request(Roo.apply( this.createCallback(), { method:this.getMethod(), @@ -313,6 +318,7 @@ Roo.extend(Roo.form.Action.Load, Roo.form.Action, { }, success : function(response){ + var result = this.processResponse(response); if(result === true || !result.success || !result.data){ this.failureType = Roo.form.Action.LOAD_FAILURE;