Skip to content

Commit

Permalink
More renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Dec 2, 2016
1 parent edfbab4 commit de4f518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/assets/yii.activeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
cancelled: false,
// the value of the input
value: undefined,
// whether to toggle aria-invalid attribute after validation
// whether to update aria-invalid attribute after validation
updateAriaInvalid: true
};

Expand Down Expand Up @@ -709,7 +709,7 @@
hasError = messages[attribute.id].length > 0;
var $container = $form.find(attribute.container);
var $error = $container.find(attribute.error);
toggleAriaInvalid($form, attribute, hasError);
updateAriaInvalid($form, attribute, hasError);
if (hasError) {
if (attribute.encodeError) {
$error.text(messages[attribute.id][0]);
Expand Down Expand Up @@ -778,7 +778,7 @@
}
};

var toggleAriaInvalid = function ($form, attribute, hasError) {
var updateAriaInvalid = function ($form, attribute, hasError) {
if (attribute.updateAriaInvalid) {
$form.find(attribute.input).attr('aria-invalid', hasError ? 'true' : 'false');
}
Expand Down

0 comments on commit de4f518

Please sign in to comment.