Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
a3fe54a4
Commit
a3fe54a4
authored
Apr 23, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: switch to the correct view now that no hardcoded values are available
parent
228a98ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
js/erp5_loader.js
js/erp5_loader.js
+9
-4
No files found.
js/erp5_loader.js
View file @
a3fe54a4
...
...
@@ -6181,15 +6181,20 @@
method
=
factory
.
widget
[
type
]
||
undefined
;
promise_list
=
[];
// set results, here, so dynamic kids are correct!
if
(
pass
.
grant
&&
reply
.
response
)
{
pointer_results
=
util
.
parse
(
reply
.
response
);
// NOTE:
// set results here, so kids.length is available in wrapper generation.
// Also, if dynamic and no response (eg for "new" record, we set an empty
// placeholder here which will generate an empty form
if
(
!
pass
.
skip
)
{
pointer_results
=
util
.
parse
(
reply
.
response
)
||
{
"
data
"
:
{
"
total_rows
"
:
0
,
"
rows
"
:
[]}};
data_total_rows
=
pointer_results
.
data
.
total_rows
;
}
// kids (must be declared before wrapper, because some wrapper need length
if
(
pass
.
content_dict
.
view_dict
)
{
kids
=
pass
.
content_dict
.
view_dict
[
pass
.
url_dict
.
mode
||
"
default
"
];
kids
=
pass
.
content_dict
.
view_dict
[
pass
.
url_dict
.
mode
]
||
pass
.
content_dict
.
view_dict
[
"
default
"
];
}
else
{
kids
=
pass
.
content_dict
.
children
||
pass
.
config_dict
.
children
||
[];
}
...
...
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