git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
src
/
data
/
HttpProxy.js
diff --git
a/src/data/HttpProxy.js
b/src/data/HttpProxy.js
index
d29d28a
..
89aed35
100644
(file)
--- a/
src/data/HttpProxy.js
+++ b/
src/data/HttpProxy.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.1.
0
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.1.
1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-171,7
+171,7
@@
Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, {
} else {
\r
this.onWrite(action, o, response, rs);
\r
}
\r
} else {
\r
this.onWrite(action, o, response, rs);
\r
}
\r
- }
\r
+ }
;
\r
},
\r
\r
/**
\r
},
\r
\r
/**
\r
@@
-233,10
+233,10
@@
Ext.extend(Ext.data.HttpProxy, Ext.data.DataProxy, {
o.request.callback.call(o.request.scope, null, o.request.arg, false);
\r
return;
\r
}
\r
o.request.callback.call(o.request.scope, null, o.request.arg, false);
\r
return;
\r
}
\r
- if (res.success === false) {
\r
- this.fireEvent('exception', this, 'remote', action, o, res, rs);
\r
- } else {
\r
+ if (res.success === true) {
\r
this.fireEvent('write', this, action, res.data, res, rs, o.request.arg);
\r
this.fireEvent('write', this, action, res.data, res, rs, o.request.arg);
\r
+ } else {
\r
+ this.fireEvent('exception', this, 'remote', action, o, res, rs);
\r
}
\r
// TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance
\r
// the calls to request.callback(...) in each will have to be made similar.
\r
}
\r
// TODO refactor onRead, onWrite to be more generalized now that we're dealing with Ext.data.Response instance
\r
// the calls to request.callback(...) in each will have to be made similar.
\r