framework/zii/widgets/jui/CJuiDialog.php
public function init()
	{
		parent::init();

		$id=$this->getId();
		if(isset($this->htmlOptions['id']))
			$id=$this->htmlOptions['id'];
		else
			$this->htmlOptions['id']=$id;

		$options=CJavaScript::encode($this->options);
		Yii::app()->getClientScript()->registerScript(__CLASS__.'#'.$id,"jQuery('#{$id}').dialog($options);");

		echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n";
	}
public function init()
	{
		parent::init();

		$id=$this->getId();
		if(isset($this->htmlOptions['id']))
			$id=$this->htmlOptions['id'];
		else
			$this->htmlOptions['id']=$id;

		$options=CJavaScript::encode($this->options);
		Yii::app()->getClientScript()->registerScript(__CLASS__.'#'.$id,"jQuery('#{$id}').dialog($options);");

		echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n";
	}
public function init ( ) { parent :: init ( ) ; $ id = $ this -> getId ( ) ; if ( isset ( $ this -> htmlOptions [ 'id' ] ) ) $ id = $ this -> htmlOptions [ 'id' ] ; else $ this -> htmlOptions [ 'id' ] = $ id ; $ options = CJavaScript :: encode ( $ this -> options ) ; Yii :: app ( ) -> getClientScript ( ) -> registerScript ( __CLASS__ . '#' . $ id , "jQuery('#{$id}').dialog($options);" ) ; echo CHtml :: openTag ( $ this -> tagName , $ this -> htmlOptions ) . "\n" ; }
Renders the open tag of the dialog.
This method also registers the necessary javascript code.
Renders the open tag of the dialog . This method also registers the necessary javascript code .