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
9ce5d9c0
Commit
9ce5d9c0
authored
Apr 24, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed text of radio group label/legend
parent
9c8233d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
js/erp5_loader.js
js/erp5_loader.js
+7
-3
No files found.
js/erp5_loader.js
View file @
9ce5d9c0
...
...
@@ -997,6 +997,7 @@
direction
=
spec
.
direction
||
"
vertical
"
;
// NOTE: will only be used for dynamic element creation
// TODO: what does this do here?
generator
=
function
(
generator_spec
)
{
var
element
=
generator_spec
.
item
;
// TODO: no!
...
...
@@ -1013,6 +1014,7 @@
// controlgroup label
if
(
spec
.
label
)
{
// TODO: how to get required on the legend? or off?
// NOTE: this will always wrap controlgroups!!!
i18n
=
spec
.
label
.
title_i18n
||
spec
.
label
.
text_i18n
;
contain
=
factory
.
element
({
...
...
@@ -1030,9 +1032,11 @@
});
label
.
appendChild
(
factory
.
element
({
"
type
"
:
"
legend
"
,
"
logic
"
:
{
"
text
"
:
spec
.
label
.
text
,
"
data-i18n
"
:
i18n
?
(
spec
.
label
.
text_i18n
)
:
null
"
direct
"
:
{
"
className
"
:
"
translate required_label
"
},
"
attributes
"
:
{
"
data-i18n
"
:
spec
.
label
.
text_i18n
}
}));
contain
.
appendChild
(
label
);
...
...
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