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
e42ef3ad
Commit
e42ef3ad
authored
Apr 24, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: correctly pick dyno to update (...)
parent
c3a9fd58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
js/erp5_loader.js
js/erp5_loader.js
+7
-4
No files found.
js/erp5_loader.js
View file @
e42ef3ad
...
...
@@ -6485,11 +6485,14 @@
}
}
}
else
{
// TODO: can this be done without storing on and querying DOM???
widget
=
pass
.
state
.
gadget
.
querySelector
(
"
[data-update]
"
)
wrapper
.
property_dict
.
map_children
=
widget
.
getAttribute
(
"
data-map
"
);
// TODO: can this be done without storing on and querying DOM???!!!
// TODO: THIS MAKES ME INSANE... qsa || widget does not work!
widget
=
pass
.
state
.
gadget
;
widget_dyno
=
widget
.
querySelector
(
"
[data-update]
"
)
||
widget
.
getElementsByTagName
(
"
form
"
)[
0
];
wrapper
.
property_dict
.
map_children
=
widget_dyno
.
getAttribute
(
"
data-map
"
);
wrapper
=
util
.
mergeObject
(
factory
.
widget
[
widget
.
getAttribute
(
"
data-widget
"
)](
wrapper
.
property_dict
),
factory
.
widget
[
widget
_dyno
.
getAttribute
(
"
data-widget
"
)](
wrapper
.
property_dict
),
wrapper
);
...
...
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