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
fe055761
Commit
fe055761
authored
May 09, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo: getContent on every render
parent
81467967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
demo/gadget_demo_json_schema_form.js
demo/gadget_demo_json_schema_form.js
+12
-5
No files found.
demo/gadget_demo_json_schema_form.js
View file @
fe055761
...
...
@@ -155,14 +155,21 @@
var
g
=
this
;
return
g
.
getDeclaredGadget
(
"
form_view
"
)
.
push
(
function
(
form_view
)
{
if
(
g
.
state
.
json_document
)
{
document
.
getElementById
(
"
json_document_content
"
).
textContent
=
JSON
.
stringify
(
g
.
state
.
json_document
,
null
,
"
"
);
}
return
form_view
.
render
({
value
:
g
.
state
.
json_document
,
schema_url
:
g
.
state
.
schema_url
});
})
.
push
(
function
()
{
return
form_view
.
getContent
();
})
.
push
(
function
(
ret
)
{
if
(
ret
===
undefined
)
{
ret
=
{};
}
g
.
state
.
json_document
=
ret
;
document
.
getElementById
(
"
json_document_content
"
).
textContent
=
JSON
.
stringify
(
ret
,
null
,
"
"
);
});
});
});
...
...
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