Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
dream
Commits
34c31098
Commit
34c31098
authored
9 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI: expandable field should honor subproperties names for label
parent
56956de7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dream/platform/src/expandable_field/expandablefield.js
dream/platform/src/expandable_field/expandablefield.js
+4
-3
No files found.
dream/platform/src/expandable_field/expandablefield.js
View file @
34c31098
...
...
@@ -24,7 +24,7 @@
selected_option_template
=
Handlebars
.
compile
(
selected_option_source
);
function
syncField
(
gadget
)
{
var
i
,
properties_dict
,
var
i
,
properties_dict
,
sub_title_name
,
sub_title
,
sub_type
,
in_type
,
default_value
,
previous_value
,
labels
=
[],
lbls
,
inps
=
[],
inputs
,
j
,
index
,
corresponding_input
,
sub_gadget_list
=
[],
old_title
,
...
...
@@ -136,6 +136,7 @@
previous_value
=
gadget
.
props
.
options
.
value
[
prop_name
][
sub_title
];
}
}
sub_title_name
=
properties_dict
[
sub_title
].
name
||
sub_title
;
for
(
j
=
0
;
j
<=
inps
.
length
-
1
;
j
+=
1
)
{
// check if the input is one of a sub-gadget
...
...
@@ -166,7 +167,7 @@
recent_occupied
.
push
(
inps
[
j
]);
// find the label for that input
inps
[
j
].
parentNode
.
parentNode
.
previousSibling
.
previousSibling
.
innerHTML
=
sub_title
;
.
previousSibling
.
previousSibling
.
innerHTML
=
sub_title
_name
;
inps
[
j
].
parentNode
.
parentNode
.
previousSibling
.
previousSibling
.
setAttribute
(
"
for
"
,
sub_title
);
...
...
This diff is collapsed.
Click to expand it.
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