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
/
ArrayReader.js
diff --git
a/src/data/ArrayReader.js
b/src/data/ArrayReader.js
index
5719362
..
b947e25
100644
(file)
--- a/
src/data/ArrayReader.js
+++ b/
src/data/ArrayReader.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
*/
@@
-58,6
+58,7
@@
Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, {
recordType = this.recordType,
fields = recordType.prototype.fields,
records = [],
recordType = this.recordType,
fields = recordType.prototype.fields,
records = [],
+ success = true,
v;
var root = this.getRoot(o);
v;
var root = this.getRoot(o);
@@
-86,8
+87,15
@@
Ext.data.ArrayReader = Ext.extend(Ext.data.JsonReader, {
totalRecords = v;
}
}
totalRecords = v;
}
}
+ if(s.successProperty){
+ v = this.getSuccess(o);
+ if(v === false || v === 'false'){
+ success = false;
+ }
+ }
return {
return {
+ success : success,
records : records,
totalRecords : totalRecords
};
records : records,
totalRecords : totalRecords
};