Renamed variables, changed logic of turning client updates on

This commit is contained in:
Alexander Makarov
2016-12-02 14:30:13 +03:00
parent b25ebaa782
commit dc294ba56f
2 changed files with 8 additions and 8 deletions

View File

@ -170,7 +170,7 @@
// the value of the input
value: undefined,
// whether to toggle aria-invalid attribute after validation
ariaInvalidToggle: true
updateAriaInvalid: true
};
@ -779,7 +779,7 @@
};
var toggleAriaInvalid = function ($form, attribute, hasError) {
if (attribute.ariaInvalidToggle) {
if (attribute.updateAriaInvalid) {
$form.find(attribute.input).attr('aria-invalid', hasError ? 'true' : 'false');
}
}