Commits

klimser committed 84b1274

Обращённый набор изменений: 0d6c862b2fbe

Comments (0)

Files changed (1)

widgets/TbAlert.php

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