Commit eb3d81fc authored by Boris Kocherov's avatar Boris Kocherov

processValidation renamed to checkValidity

parent 5fc8d75f
......@@ -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", "processValidationTop")
.allowPublicAcquisition("processValidationTop", function (arr) {
return this.processValidation(arr[0]);
.declareAcquiredMethod("checkValidityParent", "checkValidityTop")
.allowPublicAcquisition("checkValidityTop", 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.processValidationParent(json_document);
return g.checkValidityParent(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
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