Permalink
Browse files

Merge pull request #555 from maxlapko/patch-2

Allows to set html id attribute for submenu
  • Loading branch information...
hijarian committed Jul 8, 2013
2 parents a482614 + 851dc8c commit 254f586fe982f9b056d946c393170234947393d9
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/widgets/TbBaseMenu.php
View
@@ -110,15 +110,15 @@ protected function renderMenu($items)
}
if (isset($item['items']) && !empty($item['items'])) {
$this->controller->widget(
'bootstrap.widgets.TbDropdown',
array(
'encodeLabel' => $this->encodeLabel,
'htmlOptions' => isset($item['submenuOptions']) ? $item['submenuOptions']
: $this->submenuHtmlOptions,
'items' => $item['items'],
)
$dropdownOptions = array(
'encodeLabel' => $this->encodeLabel,
'htmlOptions' => isset($item['submenuOptions']) ? $item['submenuOptions']
: $this->submenuHtmlOptions,
'items' => $item['items'],
);
$dropdownOptions['id'] = isset($dropdownOptions['htmlOptions']['id']) ?
$dropdownOptions['htmlOptions']['id'] : null;
$this->controller->widget('bootstrap.widgets.TbDropdown', $dropdownOptions);
}
echo '</li>';

0 comments on commit 254f586

Please sign in to comment.