Permalink
Browse files

Include js for the button dropdown.

  • Loading branch information...
1 parent 4bb2350 commit 149b68fba3c4fdc33d644a79b32a03f7632ad5ec @thelfensdrfer thelfensdrfer committed Sep 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 EBootstrap.php
View
@@ -132,6 +132,10 @@ public static function buttonDropdown(EBootstrapButton $button, $submenuItems =
self::mergeClass($htmlOptions, array('btn-group'));
$html .= self::openTag('div', $htmlOptions);
+ $jsFile = dirname(__FILE__).'/js/bootstrap.min.js';
+ $js = Yii::app()->assetManager->publish($jsFile);
+ Yii::app()->clientScript->registerScriptFile($js);
+
if (!$split) {
$button->htmlOptions['data-toggle'] = "dropdown";
$button->url = "#";

0 comments on commit 149b68f

Please sign in to comment.