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
Rafael Monnerat
rjs_json_form
Commits
6da36ae6
Commit
6da36ae6
authored
Apr 22, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup render()
parent
f3caa368
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
gadget_json_generated_form.js
gadget_json_generated_form.js
+12
-14
No files found.
gadget_json_generated_form.js
View file @
6da36ae6
...
@@ -1429,8 +1429,7 @@
...
@@ -1429,8 +1429,7 @@
return
this
.
loadJSONSchema
(
arr
[
0
],
arr
[
1
]);
return
this
.
loadJSONSchema
(
arr
[
0
],
arr
[
1
]);
})
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
g
=
this
,
var
g
=
this
;
queue
;
g
.
props
.
toplevel
=
true
;
g
.
props
.
toplevel
=
true
;
// contain map of current normalized schema
// contain map of current normalized schema
// json pointer and corresponding url
// json pointer and corresponding url
...
@@ -1438,19 +1437,18 @@
...
@@ -1438,19 +1437,18 @@
g
.
props
.
schema
=
{};
g
.
props
.
schema
=
{};
g
.
props
.
schema_map
=
{};
g
.
props
.
schema_map
=
{};
g
.
props
.
schema_cache
=
{};
g
.
props
.
schema_cache
=
{};
g
.
options
=
options
;
return
RSVP
.
Queue
()
if
(
!
options
.
value
)
{
options
.
value
=
{};
}
if
(
options
.
schema
)
{
queue
=
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
if
(
options
.
schema
)
{
return
options
.
schema
;
return
options
.
schema
;
});
}
else
{
queue
=
g
.
loadJSONSchema
(
options
.
schema_url
);
}
}
return
queue
var
schema_url
=
options
.
schema_url
||
(
options
.
value
&&
options
.
value
.
$schema
);
if
(
schema_url
)
{
return
g
.
loadJSONSchema
(
schema_url
);
}
return
{};
})
.
push
(
function
(
schema
)
{
.
push
(
function
(
schema
)
{
g
.
options
.
schema
=
schema
;
g
.
options
.
schema
=
schema
;
return
g
.
renderForm
({
return
g
.
renderForm
({
...
...
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