Commit ee93e2a3 authored by legac's avatar legac Committed by LE GAC Renaud
Browse files

Replace root by rootProperty when using Ext.data.reader.Reader.

parent 59e9ab57
......@@ -716,7 +716,7 @@ def to_jsonstore(table, **kwargs):
extraParams=base_params,
model=tablename,
pageParam=NOPAGE,
root=ROOT,
rootProperty=ROOT,
successProperty=SUCCESS,
storeId=get_store_id(tablename),
totalProperty=TOTAL)
......
......@@ -16,7 +16,7 @@
*
* - **{@link Ext.data.reader.Json JsonReader}**
*
* - **{@link Ext.data.reader.Json#cfg-root root}**
* - **{@link Ext.data.reader.Json#cfg-root rootProperty}**
* - **{@link Ext.data.reader.Json#idProperty idProperty}**
* - **{@link Ext.data.reader.Json#successProperty successProperty}**
* - **{@link Ext.data.reader.Json#totalProperty totalProperty}**
......@@ -51,14 +51,16 @@ Ext.define('Dbui.data.DirectStore', {
proxy = {
type: 'xdirect'
};
Ext.copyTo(proxy, config, [
'extraParams',
'idProperty',
'pageParam',
'root',
'rootProperty',
'successProperty',
'totalProperty'
]);
config.proxy = proxy;
}
......
......@@ -5,7 +5,7 @@
*
* - **{@link Ext.data.reader.Json JsonReader}**
*
* - **{@link Ext.data.reader.Json#cfg-root root}**
* - **{@link Ext.data.reader.Json#cfg-root rootProperty}**
* - **{@link Ext.data.reader.Json#idProperty idProperty}**
* - **{@link Ext.data.reader.Json#successProperty successProperty}**
* - **{@link Ext.data.reader.Json#totalProperty totalProperty}**
......@@ -60,7 +60,7 @@ Ext.define('Dbui.data.proxy.Direct', {
reader = {
type: 'json'
};
Ext.copyTo(reader, config, 'root,idProperty,successProperty,totalProperty');
Ext.copyTo(reader, config, 'rootProperty,idProperty,successProperty,totalProperty');
config.reader = reader;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment