projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8051bcf
)
Roo/form/Action.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 10 Nov 2010 06:31:40 +0000
(14:31 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 10 Nov 2010 06:31:40 +0000
(14:31 +0800)
Roo/form/Action.js
patch
|
blob
|
history
diff --git
a/Roo/form/Action.js
b/Roo/form/Action.js
index
770d3bb
..
34b03e6
100644
(file)
--- a/
Roo/form/Action.js
+++ b/
Roo/form/Action.js
@@
-213,7
+213,9
@@
Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
}
},
}
},
- success : function(response){
+ success : function(response)
+ {
+ this.uploadComplete= true;
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);
@@
-225,7
+227,12
@@
Roo.extend(Roo.form.Action.Submit, Roo.form.Action, {
}
this.form.afterAction(this, false);
},
}
this.form.afterAction(this, false);
},
-
+ failure : function(response){
+ this.uploadComplete= true;
+ this.response = response;
+ this.failureType = Roo.form.Action.CONNECT_FAILURE;
+ this.form.afterAction(this, false);
+ },
handleResponse : function(response){
if(this.form.errorReader){
var rs = this.form.errorReader.read(response);
handleResponse : function(response){
if(this.form.errorReader){
var rs = this.form.errorReader.read(response);