Commits

Christoffer Niska  committed 30bbfba

fixed a minor bug in BootMenu (introduced in #139)

  • Participants
  • Parent commits 5998ef8
  • Branches bootstrap-2.0.2

Comments (0)

Files changed (2)

File demo/protected/views/site/index.php

 		<?php $this->widget('bootstrap.widgets.BootMenu', array(
 			'type'=>'list',
 			'items'=>array(
-				array('label'=>'LIST HEADER', 'itemOptions'=>array('class'=>'nav-header')),
+				array('label'=>'LIST HEADER'),
 				array('label'=>'Home', 'icon'=>'home', 'url'=>'#', 'active'=>true),
 				array('label'=>'Library', 'icon'=>'book', 'url'=>'#'),
 				array('label'=>'Application', 'icon'=>'pencil', 'url'=>'#'),
-				array('label'=>'ANOTHER LIST HEADER', 'itemOptions'=>array('class'=>'nav-header')),
+				array('label'=>'ANOTHER LIST HEADER'),
 				array('label'=>'Profile', 'icon'=>'user', 'url'=>'#'),
 				array('label'=>'Settings', 'icon'=>'cog', 'url'=>'#'),
 				array('label'=>'Help', 'icon'=>'flag', 'url'=>'#'),
 <?php \$this->widget('bootstrap.widgets.BootMenu', array(
 	'type'=>'list',
 	'items'=>array(
-		array('label'=>'LIST HEADER', 'itemOptions'=>array('class'=>'nav-header')),
+		array('label'=>'LIST HEADER'),
 		array('label'=>'Home', 'icon'=>'home', 'url'=>'#', 'active'=>true),
 		array('label'=>'Library', 'icon'=>'book', 'url'=>'#'),
 		array('label'=>'Application', 'icon'=>'pencil', 'url'=>'#'),
-		array('label'=>'ANOTHER LIST HEADER', 'itemOptions'=>array('class'=>'nav-header')),
+		array('label'=>'ANOTHER LIST HEADER'),
 		array('label'=>'Profile', 'icon'=>'user', 'url'=>'#'),
 		array('label'=>'Settings', 'icon'=>'cog', 'url'=>'#'),
 		array('label'=>'Help', 'icon'=>'flag', 'url'=>'#'),

File widgets/BootMenu.php

 			$item['label'] .= ' <span class="caret"></span>';
 		}
 
-		if (!isset($item['url']))
-			$item['url'] = '#';
-
 		return parent::renderItem($item);
 	}