Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
w2pext
plugin_dbui
Commits
ee93e2a3
Commit
ee93e2a3
authored
Dec 22, 2014
by
legac
Committed by
LE GAC Renaud
Jun 25, 2016
Browse files
Replace root by rootProperty when using Ext.data.reader.Reader.
parent
59e9ab57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
modules/plugin_dbui/converter.py
modules/plugin_dbui/converter.py
+1
-1
static/plugin_dbui/src/data/DirectStore.js
static/plugin_dbui/src/data/DirectStore.js
+4
-2
static/plugin_dbui/src/data/proxy/Direct.js
static/plugin_dbui/src/data/proxy/Direct.js
+3
-3
No files found.
modules/plugin_dbui/converter.py
View file @
ee93e2a3
...
...
@@ -716,7 +716,7 @@ def to_jsonstore(table, **kwargs):
extraParams
=
base_params
,
model
=
tablename
,
pageParam
=
NOPAGE
,
root
=
ROOT
,
root
Property
=
ROOT
,
successProperty
=
SUCCESS
,
storeId
=
get_store_id
(
tablename
),
totalProperty
=
TOTAL
)
...
...
static/plugin_dbui/src/data/DirectStore.js
View file @
ee93e2a3
...
...
@@ -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 root
Property
}**
* - **{@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
'
,
'
root
Property
'
,
'
successProperty
'
,
'
totalProperty
'
]);
config
.
proxy
=
proxy
;
}
...
...
static/plugin_dbui/src/data/proxy/Direct.js
View file @
ee93e2a3
...
...
@@ -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 root
Property
}**
* - **{@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
,
'
root
Property
,idProperty,successProperty,totalProperty
'
);
config
.
reader
=
reader
;
}
...
...
@@ -168,4 +168,4 @@ Ext.define('Dbui.data.proxy.Direct', {
args
.
push
(
me
.
createRequestCallback
(
request
,
operation
,
callback
,
scope
),
me
);
fn
.
apply
(
window
,
args
);
}
});
\ No newline at end of file
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment