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
088946da
Commit
088946da
authored
Apr 27, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint fix
parent
e51a0e05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
demo/gadget_demo_json_schema_form.js
demo/gadget_demo_json_schema_form.js
+3
-3
gadget_json_generated_form.js
gadget_json_generated_form.js
+1
-2
No files found.
demo/gadget_demo_json_schema_form.js
View file @
088946da
...
...
@@ -61,9 +61,9 @@
var
schemas
=
arr
[
0
],
docs
=
arr
[
1
];
g
.
props
.
schemas
=
docs
.
filter
(
function
(
v
)
{
var
suffix
=
"
_schema.json
"
;
return
v
.
indexOf
(
suffix
,
v
.
length
-
suffix
.
length
)
!==
-
1
;
});
var
suffix
=
"
_schema.json
"
;
return
v
.
indexOf
(
suffix
,
v
.
length
-
suffix
.
length
)
!==
-
1
;
});
g
.
props
.
schemas
=
g
.
props
.
schemas
.
concat
([
"
http://json-schema.org/draft-07/schema
"
,
"
http://json-schema.org/draft-06/schema
"
,
...
...
gadget_json_generated_form.js
View file @
088946da
...
...
@@ -378,9 +378,8 @@
if
(
schema_arr
.
length
===
1
)
{
if
(
schema_arr
[
0
].
type
instanceof
Array
)
{
return
schema_arr
[
0
].
type
.
length
<=
1
;
}
else
{
return
true
;
}
return
true
;
}
return
false
;
}
...
...
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