Browse Source

Merge pull request #808 from callmez/master

Modal::clientOptions disable support.
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
802a89f005
  1. 10
      framework/yii/bootstrap/Modal.php

10
framework/yii/bootstrap/Modal.php

@ -204,10 +204,12 @@ class Modal extends Widget
'tabindex' => -1, 'tabindex' => -1,
), $this->options); ), $this->options);
Html::addCssClass($this->options, 'modal'); Html::addCssClass($this->options, 'modal');
$this->clientOptions = array_merge(array( if ($this->clientOptions !== false) {
'show' => false, $this->clientOptions = array_merge(array(
), $this->clientOptions); 'show' => false,
), $this->clientOptions);
}
if ($this->closeButton !== null) { if ($this->closeButton !== null) {
$this->closeButton = array_merge(array( $this->closeButton = array_merge(array(

Loading…
Cancel
Save