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
0b2a8073
Commit
0b2a8073
authored
Aug 24, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take into account 'if type absent type can be any'.
so user can choose type if type absent
parent
7984ac56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jsonform/gadget_json_generated_form_child.js
jsonform/gadget_json_generated_form_child.js
+2
-2
No files found.
jsonform/gadget_json_generated_form_child.js
View file @
0b2a8073
...
@@ -318,7 +318,7 @@
...
@@ -318,7 +318,7 @@
function
checkSchemaArrOneChoise
(
schema_arr
)
{
function
checkSchemaArrOneChoise
(
schema_arr
)
{
if
(
schema_arr
.
length
===
1
)
{
if
(
schema_arr
.
length
===
1
)
{
if
(
schema_arr
[
0
].
schema
===
true
)
{
if
(
schema_arr
[
0
].
schema
===
true
||
!
schema_arr
[
0
].
schema
.
hasOwnProperty
(
'
type
'
)
)
{
return
false
;
return
false
;
}
}
if
(
schema_arr
[
0
].
schema
.
type
instanceof
Array
)
{
if
(
schema_arr
[
0
].
schema
.
type
instanceof
Array
)
{
...
@@ -433,7 +433,7 @@
...
@@ -433,7 +433,7 @@
for
(
i
=
0
;
i
<
schema_arr
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
schema_arr
.
length
;
i
+=
1
)
{
schema_item
=
schema_arr
[
i
];
schema_item
=
schema_arr
[
i
];
description
=
schema_item
.
title
;
description
=
schema_item
.
title
;
if
(
schema_item
.
schema
===
true
)
{
if
(
schema_item
.
schema
===
true
||
!
schema_item
.
schema
.
hasOwnProperty
(
'
type
'
)
)
{
generateItemsForAny
(
schema_item
.
property_name
,
schema_item
.
schema_path
);
generateItemsForAny
(
schema_item
.
property_name
,
schema_item
.
schema_path
);
}
else
if
(
getDocumentType
(
schema_item
.
schema
.
type
)
===
"
array
"
)
{
}
else
if
(
getDocumentType
(
schema_item
.
schema
.
type
)
===
"
array
"
)
{
description
=
description
||
schema_item
.
schema
.
description
;
description
=
description
||
schema_item
.
schema
.
description
;
...
...
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