Reverted closeButton

Reverted name to ```closeButton``` to be in sync with the bootstrap ```Alert``` widget.
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Kartik Visweswaran
2013-11-21 15:36:43 +05:30
gitea-unlock(16/)
parent 62493188a2
commit b979d3b024

4
apps/advanced/frontend/widgets/Alert.php
View File

@@ -37,7 +37,7 @@ class Alert extends \yii\bootstrap\Widget
/** /**
* @var array the options for rendering the close button tag. * @var array the options for rendering the close button tag.
*/ */
public $closeButtonOptions = []; public $closeButton = [];
public function init() public function init()
{ {
@@ -56,7 +56,7 @@ class Alert extends \yii\bootstrap\Widget
echo \yii\bootstrap\Alert::widget([ echo \yii\bootstrap\Alert::widget([
'body' => $message, 'body' => $message,
'closeButton' => $this->closeButtonOptions, 'closeButton' => $this->closeButton,
'options' => $this->options 'options' => $this->options
]); ]);