Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
rjs_json_form
Commits
460e6a96
Commit
460e6a96
authored
Apr 19, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify attributes set
parent
2733e960
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
gadget_json_generated_form.js
gadget_json_generated_form.js
+5
-4
No files found.
gadget_json_generated_form.js
View file @
460e6a96
...
...
@@ -665,9 +665,7 @@
first_path
+
'
/
'
,
schema_path
);
div
.
setAttribute
(
"
data-json-path
"
,
first_path
+
'
/
'
);
gadget
.
props
.
arrays
[
first_path
+
'
/
'
]
=
div
;
div
.
setAttribute
(
"
data-json-type
"
,
type
);
}
if
(
type
===
"
object
"
)
{
...
...
@@ -682,7 +680,6 @@
schema_path
);
});
div
.
setAttribute
(
"
data-json-path
"
,
first_path
+
'
/
'
);
}
if
(
input
)
{
...
...
@@ -690,8 +687,12 @@
// gadget.props.inputs not contain values
gadget
.
props
.
inputs
.
push
(
input
);
input
.
name
=
first_path
;
input
.
setAttribute
(
"
class
"
,
"
slapos-parameter
"
);
// XXX for gui
//input.setAttribute("class", "slapos-parameter");
div_input
.
appendChild
(
input
);
}
else
{
div
.
setAttribute
(
"
data-json-path
"
,
first_path
+
'
/
'
);
div
.
setAttribute
(
"
data-json-type
"
,
type
);
}
if
(
json_field
.
info
!==
undefined
)
{
...
...
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