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
f16ff9a5
Commit
f16ff9a5
authored
Mar 28, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: allow content loaded after page creation to pass content.set
parent
6be404ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
js/erp5_loader.js
js/erp5_loader.js
+16
-2
No files found.
js/erp5_loader.js
View file @
f16ff9a5
...
...
@@ -2621,7 +2621,7 @@
popup
.
setAttribute
(
"
data-reference
"
,
reference
);
if
(
reply
.
children
)
{
for
(
i
=
0
;
i
<
reply
.
children
.
length
;
i
+=
1
)
{
promises
[
i
]
=
app
.
content
.
set
(
reply
.
children
[
i
],
{}
,
false
);
promises
[
i
]
=
app
.
content
.
set
(
reply
.
children
[
i
],
{});
}
}
return
RSVP
.
all
(
promises
);
...
...
@@ -5898,7 +5898,7 @@
app
.
content
.
make
=
function
(
reply
)
{
var
pass
,
method
,
type
,
kids
,
promise_list
,
route
,
search
,
search_id
,
kid
,
is_html
,
is_dynamic
,
is_id
,
i
,
j
,
last
,
encoded
,
wrapper
,
active
,
selector
,
update_target
,
encoded
,
wrapper
,
active
,
selector
,
update_target
,
target
,
grant_child
,
quirk_dict
,
generator
,
pointer_results
;
pass
=
reply
.
pass
;
...
...
@@ -6114,6 +6114,20 @@
}
}
// HACK for setParam in login window
if
(
kid
.
logic
&&
kid
.
logic
.
setParam
)
{
kid
.
direct
.
href
+=
kid
.
direct
.
href
.
indexOf
(
"
?
"
)
>
0
?
"
&
"
:
"
?
"
;
switch
(
kid
.
logic
.
setParam
[
1
])
{
case
"
location
"
:
target
=
window
.
location
.
origin
+
window
.
location
.
pathname
+
window
.
location
.
hash
.
split
(
"
?
"
)[
0
];
break
;
}
kid
.
direct
.
href
+=
window
.
encodeURIComponent
(
kid
.
logic
.
setParam
[
0
])
+
"
=
"
+
window
.
encodeURIComponent
(
target
);
}
if
(
quirk_dict
.
update
!==
true
||
is_dynamic
||
quirk_dict
.
dynamic
)
{
// for content loaded via href, generate URL dict and undefine kid
// TODO: make sure this works and does not inherit to regular widgets
...
...
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