Skip to content

Commit

Permalink
Fix an issue with the navbar menu
Browse files Browse the repository at this point in the history
  • Loading branch information
crisu83 committed Mar 25, 2013
1 parent 201fb2e commit 0475eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ nbproject
# mac deployment helpers
switch

# Composer stuff
# Composer files
composer*
vendor*
vendor/*

# docs app
docs/app/runtime
Expand Down
5 changes: 3 additions & 2 deletions widgets/TbNavbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,13 @@ public function run()
$this->collapseOptions = TbHtml::addClassName('nav-collapse', $this->collapseOptions);
echo TbHtml::collapseIcon('#' . $collapseId) . PHP_EOL;
echo $brand . PHP_EOL;
$this->controller->widget('bootstrap.widgets.TbCollapse', array(
$this->controller->beginWidget('bootstrap.widgets.TbCollapse', array(
'id' => $collapseId,
'content' => $items,
'toggle' => false, // navbars are collapsed by default
'htmlOptions' => $this->collapseOptions,
));
echo $items;
$this->controller->endWidget();
}
else
{
Expand Down

0 comments on commit 0475eb6

Please sign in to comment.