Commits

klimser  committed 8759354

Alerts bug fix (close link shows incorrect)
Corrected close link (with twitter bootstrap recommendations)

  • Participants
  • Parent commits 84b1274

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);