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
eb3d81fc
Commit
eb3d81fc
authored
Apr 20, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
processValidation renamed to checkValidity
parent
5fc8d75f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
17 deletions
+10
-17
gadget_json_generated_form.js
gadget_json_generated_form.js
+10
-17
No files found.
gadget_json_generated_form.js
View file @
eb3d81fc
...
...
@@ -470,7 +470,7 @@
return
event
(
schema_alternatives
[
value
[
scope
]].
value
);
})
.
push
(
function
()
{
return
gadget
.
processValidation
();
return
gadget
.
checkValidity
();
})
.
push
(
function
()
{
if
(
rerender
)
{
...
...
@@ -516,7 +516,7 @@
event
:
function
()
{
return
event
(
schema_alternatives
[
0
].
value
)
.
push
(
function
()
{
return
gadget
.
processValidation
();
return
gadget
.
checkValidity
();
});
}
});
...
...
@@ -1137,7 +1137,7 @@
tasks
.
push
(
g
.
props
.
add_custom_data
[
key
].
rerender
());
}
}
tasks
.
push
(
g
.
processValidation
());
tasks
.
push
(
g
.
checkValidity
());
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
(
tasks
);
...
...
@@ -1210,17 +1210,17 @@
);
});
})
.
declareAcquiredMethod
(
"
processValidationParent
"
,
"
processValidation
Top
"
)
.
allowPublicAcquisition
(
"
processValidation
Top
"
,
function
(
arr
)
{
return
this
.
processValidation
(
arr
[
0
]);
.
declareAcquiredMethod
(
"
checkValidityParent
"
,
"
checkValidity
Top
"
)
.
allowPublicAcquisition
(
"
checkValidity
Top
"
,
function
(
arr
)
{
return
this
.
checkValidity
(
arr
[
0
]);
})
.
declareMethod
(
'
processValidation
'
,
function
(
json_document
)
{
.
declareMethod
(
'
checkValidity
'
,
function
(
json_document
)
{
// XXX need use local schema and local json document
// in every subgadget to take into account user anyOf choice
// and so more precisely point to issue
var
g
=
this
;
if
(
!
g
.
props
.
toplevel
)
{
return
g
.
processValidation
Parent
(
json_document
);
return
g
.
checkValidity
Parent
(
json_document
);
}
return
RSVP
.
Queue
()
.
push
(
function
()
{
...
...
@@ -1421,7 +1421,7 @@
});
})
.
push
(
function
()
{
return
g
.
processValidation
();
return
g
.
checkValidity
();
})
.
push
(
function
()
{
return
g
;
...
...
@@ -1451,7 +1451,7 @@
i
;
for
(
i
=
0
;
i
<
field_list
.
length
;
i
=
i
+
1
)
{
if
(
evt
.
target
===
field_list
[
i
])
{
return
this
.
processValidation
();
return
this
.
checkValidity
();
}
}
})
...
...
@@ -1463,13 +1463,6 @@
.
declareMethod
(
'
getContent
'
,
function
()
{
var
g
=
this
;
return
getFormValuesAsJSONDict
(
g
);
// return g.processValidation(g.options.schema_url, json_dict)
// .push(function (status) {
// return {
// value: json_dict,
// status: status
// };
// });
});
}(
window
,
document
,
rJS
,
RSVP
,
jIO
,
tv4
));
\ No newline at end of file
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