Added missing bracket

This commit is contained in:
SilverFire - Dmitry Naumenko
2017-09-09 15:43:56 +03:00
parent 3a8feb17a8
commit 18689c5ed1

View File

@ -583,7 +583,7 @@ class View extends \yii\base\View
$lines[] = Html::script($js, ['type' => 'text/javascript']);
}
if (!empty($this->js[self::POS_LOAD])) {
$js = "jQuery(function ($) {\n$(window).on('load', function () {\n" . implode("\n", $this->js[self::POS_LOAD]) . "\n}\n});";
$js = "jQuery(function ($) {\n$(window).on('load', function () {\n" . implode("\n", $this->js[self::POS_LOAD]) . "\n});\n});";
$lines[] = Html::script($js, ['type' => 'text/javascript']);
}
}