Commits

Christoffer Niska  committed a4dff3c Merge

Merged in klimser/yii-bootstrap (pull request #53)

Fix for incorrect alerts "close" link shows

  • Participants
  • Parent commits cd1edd9, 8759354

Comments (0)

Files changed (1)

File widgets/TbAlert.php

 
 				echo CHtml::openTag('div', $alert['htmlOptions']);
 
-				if ($this->closeText !== false && !isset($alert['closeText']))
+				if (!isset($alert['closeText']))
 					$alert['closeText'] = $this->closeText;
-				else
-					$alert['closeText'] = false;
 
 				if ($alert['closeText'] !== false)
-					echo '<a class="close" data-dismiss="alert">'.$alert['closeText'].'</a>';
+					echo '<a href="#" class="close" data-dismiss="alert">'.$alert['closeText'].'</a>';
 
 				echo Yii::app()->user->getFlash($type);