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
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
Show 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 @@
...
@@ -470,7 +470,7 @@
return
event
(
schema_alternatives
[
value
[
scope
]].
value
);
return
event
(
schema_alternatives
[
value
[
scope
]].
value
);
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
processValidation
();
return
gadget
.
checkValidity
();
})
})
.
push
(
function
()
{
.
push
(
function
()
{
if
(
rerender
)
{
if
(
rerender
)
{
...
@@ -516,7 +516,7 @@
...
@@ -516,7 +516,7 @@
event
:
function
()
{
event
:
function
()
{
return
event
(
schema_alternatives
[
0
].
value
)
return
event
(
schema_alternatives
[
0
].
value
)
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
processValidation
();
return
gadget
.
checkValidity
();
});
});
}
}
});
});
...
@@ -1137,7 +1137,7 @@
...
@@ -1137,7 +1137,7 @@
tasks
.
push
(
g
.
props
.
add_custom_data
[
key
].
rerender
());
tasks
.
push
(
g
.
props
.
add_custom_data
[
key
].
rerender
());
}
}
}
}
tasks
.
push
(
g
.
processValidation
());
tasks
.
push
(
g
.
checkValidity
());
return
RSVP
.
Queue
()
return
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
(
tasks
);
return
RSVP
.
all
(
tasks
);
...
@@ -1210,17 +1210,17 @@
...
@@ -1210,17 +1210,17 @@
);
);
});
});
})
})
.
declareAcquiredMethod
(
"
processValidationParent
"
,
"
processValidation
Top
"
)
.
declareAcquiredMethod
(
"
checkValidityParent
"
,
"
checkValidity
Top
"
)
.
allowPublicAcquisition
(
"
processValidation
Top
"
,
function
(
arr
)
{
.
allowPublicAcquisition
(
"
checkValidity
Top
"
,
function
(
arr
)
{
return
this
.
processValidation
(
arr
[
0
]);
return
this
.
checkValidity
(
arr
[
0
]);
})
})
.
declareMethod
(
'
processValidation
'
,
function
(
json_document
)
{
.
declareMethod
(
'
checkValidity
'
,
function
(
json_document
)
{
// XXX need use local schema and local json document
// XXX need use local schema and local json document
// in every subgadget to take into account user anyOf choice
// in every subgadget to take into account user anyOf choice
// and so more precisely point to issue
// and so more precisely point to issue
var
g
=
this
;
var
g
=
this
;
if
(
!
g
.
props
.
toplevel
)
{
if
(
!
g
.
props
.
toplevel
)
{
return
g
.
processValidation
Parent
(
json_document
);
return
g
.
checkValidity
Parent
(
json_document
);
}
}
return
RSVP
.
Queue
()
return
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -1421,7 +1421,7 @@
...
@@ -1421,7 +1421,7 @@
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
g
.
processValidation
();
return
g
.
checkValidity
();
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
g
;
return
g
;
...
@@ -1451,7 +1451,7 @@
...
@@ -1451,7 +1451,7 @@
i
;
i
;
for
(
i
=
0
;
i
<
field_list
.
length
;
i
=
i
+
1
)
{
for
(
i
=
0
;
i
<
field_list
.
length
;
i
=
i
+
1
)
{
if
(
evt
.
target
===
field_list
[
i
])
{
if
(
evt
.
target
===
field_list
[
i
])
{
return
this
.
processValidation
();
return
this
.
checkValidity
();
}
}
}
}
})
})
...
@@ -1463,13 +1463,6 @@
...
@@ -1463,13 +1463,6 @@
.
declareMethod
(
'
getContent
'
,
function
()
{
.
declareMethod
(
'
getContent
'
,
function
()
{
var
g
=
this
;
var
g
=
this
;
return
getFormValuesAsJSONDict
(
g
);
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
));
}(
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