Commit eb3d81fc authored by Boris Kocherov's avatar Boris Kocherov

processValidation renamed to checkValidity

parent 5fc8d75f
...@@ -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", "processValidationTop") .declareAcquiredMethod("checkValidityParent", "checkValidityTop")
.allowPublicAcquisition("processValidationTop", function (arr) { .allowPublicAcquisition("checkValidityTop", 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.processValidationParent(json_document); return g.checkValidityParent(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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment