mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	Fix #18386: Fix assets/yii.activeForm.js incorrect target selector for validatingCssClass
				
					
				
			This commit is contained in:
		| @ -4,6 +4,7 @@ Yii Framework 2 Change Log | ||||
| 2.0.40 under development | ||||
| ------------------------ | ||||
|  | ||||
| - Bug #18386: Fix `assets/yii.activeForm.js` incorrect target selector for `validatingCssClass` (brussens) | ||||
| - Enh #18381: The `yii\web\AssetManager` `$basePath` readable and writeable check has been moved to the `checkBasePathPermission()`. This check will run once before `publishFile()` and `publishDirectory()` (nadar) | ||||
| - Bug #18199: Fix content body response on 304 HTTP status code, according to RFC 7232 (rad8329) | ||||
| - Enh #18394: Add support for setting `yii\web\Response::$stream` to a callable (brandonkelly) | ||||
|  | ||||
| @ -569,7 +569,13 @@ | ||||
|             $.each(data.attributes, function () { | ||||
|                 if (this.status === 2) { | ||||
|                     this.status = 3; | ||||
|                     $form.find(this.container).addClass(data.settings.validatingCssClass); | ||||
|  | ||||
|                     var $container = $form.find(this.container), | ||||
|                         $input = findInput($form, this); | ||||
|  | ||||
|                     var $errorElement = data.settings.validationStateOn === 'input' ? $input : $container; | ||||
|  | ||||
|                     $errorElement.addClass(data.settings.validatingCssClass); | ||||
|                 } | ||||
|             }); | ||||
|             methods.validate.call($form); | ||||
| @ -917,4 +923,4 @@ | ||||
|             $form.find(attribute.input).attr('aria-invalid', hasError ? 'true' : 'false'); | ||||
|         } | ||||
|     } | ||||
| })(window.jQuery); | ||||
| })(window.jQuery); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Brusensky
					Dmitry Brusensky