Commit d125198c by Crisu83

Changed BootMenu to always set the href of dropdown-toggles to '#'.

parent 4efdf8b9
......@@ -138,7 +138,6 @@ section {
}
@media (max-width: 980px) {
// Unfix the topbar
body {
padding-top: 0px;
}
......
......@@ -69,6 +69,8 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
'items'=>array(
array('label'=>'Home', 'url'=>'#', 'active'=>true),
array('label'=>'Link', 'url'=>'#'),
array('label'=>'Link', 'url'=>'#'),
array('label'=>'Link', 'url'=>'#'),
array('label'=>'Dropdown', 'url'=>'#', 'items'=>array(
array('label'=>'Action', 'url'=>'#'),
array('label'=>'Another action', 'url'=>'#'),
......
......@@ -181,8 +181,7 @@ class BootMenu extends BootWidget
if (isset($item['items']))
{
if (!isset($item['url']))
$item['url'] = '#';
$item['url'] = '#';
if (isset($item['linkOptions']['class']))
$item['linkOptions']['class'] .= ' dropdown-toggle';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment