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
9c8233d3
Commit
9c8233d3
authored
Apr 24, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed display of label in radio group
parent
755c2d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
js/erp5_loader.js
js/erp5_loader.js
+3
-2
No files found.
js/erp5_loader.js
View file @
9c8233d3
...
...
@@ -179,7 +179,7 @@
theme
,
icon_string
,
input_type
,
need_text_node
,
container_class_list
,
label_class_list
,
index
,
disabled
,
active
,
text
,
addLabel
,
readonly
,
mask_set
,
mask
,
star
,
hidden_field
,
icon
,
no_validate
,
has_opts
,
push_label
,
no_text
;
push_label
,
no_text
,
label_set
;
// exit early with a span tag
// TODO: make this with label et al
...
...
@@ -438,6 +438,7 @@
// This saves doing "invalid" handler with javascript
if
(
spec
.
logic
.
add_label
!==
false
&&
((
need_text_node
===
undefined
&&
(
push_label
||
!
label_inside
)
&&
!
hidden_field
)
||
spec
.
logic
.
route
))
{
label_set
=
true
;
label_target
.
appendChild
(
addLabel
(
spec
,
label_class_list
));
}
...
...
@@ -458,7 +459,7 @@
element_target
.
appendChild
(
factory
.
element
(
spec
));
// checkbox radio need label after input
if
(
label_inside
)
{
if
(
label_inside
&&
!
label_set
)
{
label_target
.
appendChild
(
addLabel
(
spec
,
label_class_list
));
}
...
...
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