projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove selectNode (not needed - learn about Roo.select())
[roojs1]
/
Roo
/
form
/
Action.js
diff --git
a/Roo/form/Action.js
b/Roo/form/Action.js
index
2ce1b51
..
59c5dad
100644
(file)
--- a/
Roo/form/Action.js
+++ b/
Roo/form/Action.js
@@
-67,6
+67,7
@@
Roo.form.Action.prototype = {
// default connection failure
failure : function(response){
// default connection failure
failure : function(response){
+
this.response = response;
this.failureType = Roo.form.Action.CONNECT_FAILURE;
this.form.afterAction(this, false);
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),
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();
}
Roo.MessageBox.hide();
}
+
var result = this.processResponse(response);
if(result === true || result.success){
this.form.afterAction(this, true);
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();
}
Roo.MessageBox.hide();
}
+
this.response = response;
this.failureType = Roo.form.Action.CONNECT_FAILURE;
this.form.afterAction(this, false);
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(){
type : 'load',
run : function(){
+
Roo.Ajax.request(Roo.apply(
this.createCallback(), {
method:this.getMethod(),
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){
},
success : function(response){
+
var result = this.processResponse(response);
if(result === true || !result.success || !result.data){
this.failureType = Roo.form.Action.LOAD_FAILURE;
var result = this.processResponse(response);
if(result === true || !result.success || !result.data){
this.failureType = Roo.form.Action.LOAD_FAILURE;