mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Bugfix
This commit is contained in:
@@ -53,8 +53,8 @@ class Widget extends \yii\base\Widget
|
|||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
parent::init();
|
parent::init();
|
||||||
if (!isset($this->clientOptions['id'])) {
|
if (!isset($this->options['id'])) {
|
||||||
$this->clientOptions['id'] = $this->getId();
|
$this->options['id'] = $this->getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ class Widget extends \yii\base\Widget
|
|||||||
*/
|
*/
|
||||||
protected function registerPlugin($name)
|
protected function registerPlugin($name)
|
||||||
{
|
{
|
||||||
$id = $this->clientOptions['id'];
|
$id = $this->options['id'];
|
||||||
$view = $this->getView();
|
$view = $this->getView();
|
||||||
$view->registerAssetBundle(static::$responsive ? 'yii/bootstrap/responsive' : 'yii/bootstrap');
|
$view->registerAssetBundle(static::$responsive ? 'yii/bootstrap/responsive' : 'yii/bootstrap');
|
||||||
$view->registerAssetBundle("yii/bootstrap/$name");
|
$view->registerAssetBundle("yii/bootstrap/$name");
|
||||||
|
|||||||
Reference in New Issue
Block a user