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