mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 14:50:56 +08:00
Renamed variables, changed logic of turning client updates on
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user