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
91167a7d
Commit
91167a7d
authored
Apr 22, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed no items not generating placeholder
parent
71a41c75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
js/erp5_loader.js
js/erp5_loader.js
+10
-4
No files found.
js/erp5_loader.js
View file @
91167a7d
...
...
@@ -6158,7 +6158,7 @@
search
,
search_id
,
kid
,
is_html
,
is_dynamic
,
is_id
,
i
,
j
,
k
,
last
,
encoded
,
wrapper
,
active
,
selector
,
update_target
,
target
,
widget
,
quirk_dict
,
generator
,
pointer_results
,
data_total_rows
,
is_parameter
,
param_len
,
parameter
;
param_len
,
parameter
,
no_item
,
dyno
,
container
;
pass
=
reply
.
pass
;
pass
.
config_dict
=
pass
.
config_dict
||
{};
...
...
@@ -6241,17 +6241,23 @@
// switch back
wrapper
=
generator
;
// make properties available to children in need
wrapper
.
property_dict
=
quirk_dict
;
// =============================
// no records returned, no_show set below on dyno
// TODO: find better way to set dynamic flag
if
(
quirk_dict
.
no_show
)
{
kids
.
push
(
factory
.
util
.
noItems
(
no_item
=
factory
.
util
.
noItems
(
quirk_dict
.
no_show
,
wrapper
.
base
,
wrapper
.
count
?
wrapper
.
count
(
quirk_dict
.
scheme
[
0
])
:
null
));
);
kids
=
util
.
inherit
(
no_item
,
{
"
scheme
"
:
quirk_dict
.
scheme
,
"
field_dict
"
:
quirk_dict
.
field_dict
}
);
}
// dynamic content
...
...
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