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): ...@@ -716,7 +716,7 @@ def to_jsonstore(table, **kwargs):
extraParams=base_params, extraParams=base_params,
model=tablename, model=tablename,
pageParam=NOPAGE, pageParam=NOPAGE,
root=ROOT, rootProperty=ROOT,
successProperty=SUCCESS, successProperty=SUCCESS,
storeId=get_store_id(tablename), storeId=get_store_id(tablename),
totalProperty=TOTAL) totalProperty=TOTAL)
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* *
* - **{@link Ext.data.reader.Json JsonReader}** * - **{@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#idProperty idProperty}**
* - **{@link Ext.data.reader.Json#successProperty successProperty}** * - **{@link Ext.data.reader.Json#successProperty successProperty}**
* - **{@link Ext.data.reader.Json#totalProperty totalProperty}** * - **{@link Ext.data.reader.Json#totalProperty totalProperty}**
...@@ -51,14 +51,16 @@ Ext.define('Dbui.data.DirectStore', { ...@@ -51,14 +51,16 @@ Ext.define('Dbui.data.DirectStore', {
proxy = { proxy = {
type: 'xdirect' type: 'xdirect'
}; };
Ext.copyTo(proxy, config, [ Ext.copyTo(proxy, config, [
'extraParams', 'extraParams',
'idProperty', 'idProperty',
'pageParam', 'pageParam',
'root', 'rootProperty',
'successProperty', 'successProperty',
'totalProperty' 'totalProperty'
]); ]);
config.proxy = proxy; config.proxy = proxy;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* - **{@link Ext.data.reader.Json JsonReader}** * - **{@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#idProperty idProperty}**
* - **{@link Ext.data.reader.Json#successProperty successProperty}** * - **{@link Ext.data.reader.Json#successProperty successProperty}**
* - **{@link Ext.data.reader.Json#totalProperty totalProperty}** * - **{@link Ext.data.reader.Json#totalProperty totalProperty}**
...@@ -60,7 +60,7 @@ Ext.define('Dbui.data.proxy.Direct', { ...@@ -60,7 +60,7 @@ Ext.define('Dbui.data.proxy.Direct', {
reader = { reader = {
type: 'json' type: 'json'
}; };
Ext.copyTo(reader, config, 'root,idProperty,successProperty,totalProperty'); Ext.copyTo(reader, config, 'rootProperty,idProperty,successProperty,totalProperty');
config.reader = reader; config.reader = reader;
} }
...@@ -168,4 +168,4 @@ Ext.define('Dbui.data.proxy.Direct', { ...@@ -168,4 +168,4 @@ Ext.define('Dbui.data.proxy.Direct', {
args.push(me.createRequestCallback(request, operation, callback, scope), me); args.push(me.createRequestCallback(request, operation, callback, scope), me);
fn.apply(window, args); fn.apply(window, args);
} }
}); });
\ No newline at end of file
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