fix BootstrapWidgetTrait::registerPlugin

This commit is contained in:
Игорь Тарасов 2021-08-13 05:08:44 +05:00
parent b51e84b269
commit a9779d96a4

View File

@ -76,11 +76,9 @@ trait BootstrapWidgetTrait
$id = $this->options['id'];
if ($this->clientOptions !== []) {
$options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
$js = "jQuery('#$id').$name($options);";
$view->registerJs($js);
}
$options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
$js = "jQuery('#$id').$name($options);";
$view->registerJs($js);
$this->registerClientEvents();
}