From de4f518b94875cb2b651bc3d07116cdd0d9aa4df Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 2 Dec 2016 14:38:44 +0300 Subject: [PATCH] More renaming --- framework/assets/yii.activeForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/assets/yii.activeForm.js b/framework/assets/yii.activeForm.js index a37e727..789cb27 100644 --- a/framework/assets/yii.activeForm.js +++ b/framework/assets/yii.activeForm.js @@ -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 }; @@ -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]); @@ -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'); }