fix BootstrapWidgetTrait::registerPlugin
This commit is contained in:
parent
b51e84b269
commit
a9779d96a4
@ -76,11 +76,9 @@ trait BootstrapWidgetTrait
|
|||||||
|
|
||||||
$id = $this->options['id'];
|
$id = $this->options['id'];
|
||||||
|
|
||||||
if ($this->clientOptions !== []) {
|
|
||||||
$options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
|
$options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
|
||||||
$js = "jQuery('#$id').$name($options);";
|
$js = "jQuery('#$id').$name($options);";
|
||||||
$view->registerJs($js);
|
$view->registerJs($js);
|
||||||
}
|
|
||||||
|
|
||||||
$this->registerClientEvents();
|
$this->registerClientEvents();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user