Код: Выделить всё
if($this->afterAjaxUpdate!==null)
{
if(!($this->afterAjaxUpdate instanceof CJavaScriptExpression) && strpos($this->afterAjaxUpdate,'js:')!==0)
{
$options['beforeAjaxUpdate']=new CJavaScriptExpression($this->afterAjaxUpdate);
}
else
{
$options['beforeAjaxUpdate']=$this->afterAjaxUpdate;
}
}
Код: Выделить всё
if($this->afterAjaxUpdate!==null)
{
if(!($this->afterAjaxUpdate instanceof CJavaScriptExpression) && strpos($this->afterAjaxUpdate,'js:')!==0)
{
$options['afterAjaxUpdate']=new CJavaScriptExpression($this->afterAjaxUpdate);
}
else
{
$options['afterAjaxUpdate']=$this->afterAjaxUpdate;
}
}