fix BootstrapWidgetTrait::registerPlugin
This commit is contained in:
parent
b51e84b269
commit
a9779d96a4
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user