mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Form asset bundle registering code moved from ActiveForm::run() to the *Validator::clientValidateAttribute().
This commit is contained in:
@@ -134,7 +134,6 @@ class ActiveForm extends Widget
|
||||
$id = $this->options['id'];
|
||||
$options = Json::encode($this->getClientOptions());
|
||||
$attributes = Json::encode($this->attributes);
|
||||
$this->view->registerAssetBundle('yii/form');
|
||||
$this->view->registerJs("jQuery('#$id').yiiActiveForm($attributes, $options);");
|
||||
}
|
||||
echo Html::endForm();
|
||||
|
||||
Reference in New Issue
Block a user