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
8c3b49ae
Commit
8c3b49ae
authored
May 02, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scope collision after splitting
parent
08eb2298
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
gadget_json_generated_form.html
gadget_json_generated_form.html
+0
-3
gadget_json_generated_form.js
gadget_json_generated_form.js
+12
-3
No files found.
gadget_json_generated_form.html
View file @
8c3b49ae
...
...
@@ -14,8 +14,5 @@
<script
src=
"gadget_json_generated_form.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
data-gadget-url=
"gadget_json_generated_form_child.html"
data-gadget-scope=
"json_form_child"
data-gadget-sandbox=
"public"
></div>
</body>
</html>
gadget_json_generated_form.js
View file @
8c3b49ae
...
...
@@ -511,9 +511,18 @@
// message: error_message can be array containing dom elements
// }
g
.
props
.
schema_resolve_errors
=
{};
return
g
.
getDeclaredGadget
(
"
json_form_child
"
)
return
RSVP
.
Queue
()
.
push
(
function
()
{
if
(
!
g
.
props
.
form_gadget
)
{
return
g
.
declareGadget
(
'
gadget_json_generated_form_child.html
'
,
{
scope
:
"
j
"
+
Math
.
random
().
toString
(
36
).
substr
(
2
,
9
)})
.
push
(
function
(
json_form_child
)
{
g
.
props
.
form_gadget
=
json_form_child
;
g
.
element
.
appendChild
(
json_form_child
.
element
);
});
}
})
.
push
(
function
()
{
if
(
options
.
schema
)
{
return
options
.
schema
;
}
...
...
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