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
Jérome Perrin
rjs_json_form
Commits
5adfb60f
Commit
5adfb60f
authored
Apr 17, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make code better understandable
parent
4b46b072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gadget_json_generated_form.js
gadget_json_generated_form.js
+4
-4
No files found.
gadget_json_generated_form.js
View file @
5adfb60f
...
@@ -340,7 +340,7 @@
...
@@ -340,7 +340,7 @@
});
});
}
}
function
render_s
elect_type
(
gadget
,
title
,
schema_arr
,
event
,
rerender
)
{
function
render_s
chema_selector
(
gadget
,
title
,
schema_arr
,
event
,
rerender
)
{
return
RSVP
.
Queue
()
return
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
var
schema_alternatives
=
[],
var
schema_alternatives
=
[],
...
@@ -525,7 +525,7 @@
...
@@ -525,7 +525,7 @@
return
expandSchema
(
gadget
,
item_schema
,
schema_path
+
'
/items
'
);
return
expandSchema
(
gadget
,
item_schema
,
schema_path
+
'
/items
'
);
})
})
.
push
(
function
(
schema_arr
)
{
.
push
(
function
(
schema_arr
)
{
return
render_s
elect_type
(
gadget
,
"
add item to array
"
,
return
render_s
chema_selector
(
gadget
,
"
add item to array
"
,
schema_arr
,
function
(
value
)
{
schema_arr
,
function
(
value
)
{
return
addSubForm
({
return
addSubForm
({
gadget
:
gadget
,
gadget
:
gadget
,
...
@@ -753,7 +753,7 @@
...
@@ -753,7 +753,7 @@
return
expandSchema
(
g
,
schema
,
schema_path
+
'
/additionalProperties
'
);
return
expandSchema
(
g
,
schema
,
schema_path
+
'
/additionalProperties
'
);
})
})
.
push
(
function
(
schema_arr
)
{
.
push
(
function
(
schema_arr
)
{
return
render_s
elect_type
(
g
,
"
add custom property
"
,
schema_arr
,
function
(
value
)
{
return
render_s
chema_selector
(
g
,
"
add custom property
"
,
schema_arr
,
function
(
value
)
{
return
addSubForm
({
return
addSubForm
({
gadget
:
g
,
gadget
:
g
,
element
:
input
,
element
:
input
,
...
@@ -830,7 +830,7 @@
...
@@ -830,7 +830,7 @@
return
expandProperties
(
g
,
json_field
.
properties
,
schema_path
+
'
/properties/
'
);
return
expandProperties
(
g
,
json_field
.
properties
,
schema_path
+
'
/properties/
'
);
})
})
.
push
(
function
(
schema_arr
)
{
.
push
(
function
(
schema_arr
)
{
return
render_s
elect_type
(
g
,
"
add property
"
,
schema_arr
,
function
(
value
)
{
return
render_s
chema_selector
(
g
,
"
add property
"
,
schema_arr
,
function
(
value
)
{
used_properties
[
value
.
property_name
]
=
""
;
used_properties
[
value
.
property_name
]
=
""
;
return
addSubForm
({
return
addSubForm
({
gadget
:
g
,
gadget
:
g
,
...
...
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