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
fa804cb1
Commit
fa804cb1
authored
Aug 20, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint fix
parent
463bbc9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
jsonform/gadget_json_generated_form_child.js
jsonform/gadget_json_generated_form_child.js
+3
-3
No files found.
jsonform/gadget_json_generated_form_child.js
View file @
fa804cb1
...
@@ -1373,7 +1373,7 @@
...
@@ -1373,7 +1373,7 @@
if
(
input
.
hasAttribute
(
'
data-origin-value
'
))
{
if
(
input
.
hasAttribute
(
'
data-origin-value
'
))
{
json_dict
[
input
.
name
]
=
JSON
.
parse
(
input
.
getAttribute
(
'
data-origin-value
'
));
json_dict
[
input
.
name
]
=
JSON
.
parse
(
input
.
getAttribute
(
'
data-origin-value
'
));
}
else
{
}
else
{
if
(
input
.
required
||
input
.
value
!==
""
)
{
if
(
input
.
required
||
input
.
value
!==
""
)
{
var
type
=
input
.
getAttribute
(
'
data-json-type
'
);
var
type
=
input
.
getAttribute
(
'
data-json-type
'
);
if
(
input
.
tagName
===
"
SELECT
"
&&
input
.
value
)
{
if
(
input
.
tagName
===
"
SELECT
"
&&
input
.
value
)
{
// selection used for enums
// selection used for enums
...
@@ -1458,7 +1458,7 @@
...
@@ -1458,7 +1458,7 @@
.
push
(
function
()
{
.
push
(
function
()
{
return
g
.
element
.
setAttribute
(
'
data-json-property-name
'
,
new_name
);
return
g
.
element
.
setAttribute
(
'
data-json-property-name
'
,
new_name
);
})
})
.
push
(
undefined
,
function
(
error
)
{
.
push
(
undefined
,
function
()
{
// XXX notify user
// XXX notify user
event
.
srcElement
.
value
=
name
;
event
.
srcElement
.
value
=
name
;
event
.
srcElement
.
focus
();
event
.
srcElement
.
focus
();
...
@@ -1579,7 +1579,7 @@
...
@@ -1579,7 +1579,7 @@
.
declareAcquiredMethod
(
"
notifyInvalid
"
,
"
notifyInvalid
"
)
.
declareAcquiredMethod
(
"
notifyInvalid
"
,
"
notifyInvalid
"
)
.
declareAcquiredMethod
(
"
checkValidity
"
,
"
checkValidity
"
)
.
declareAcquiredMethod
(
"
checkValidity
"
,
"
checkValidity
"
)
.
allowPublicAcquisition
(
"
notifyValid
"
,
function
(
arr
,
sub_scope
)
{
.
allowPublicAcquisition
(
"
notifyValid
"
,
function
()
{
return
true
;
return
true
;
})
})
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
sub_scope
)
{
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
sub_scope
)
{
...
...
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