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