Hi,
we think we have found a bug in CListView. The beforeAjaxUpdate function has not worked after update to Yii 1.1.11. We have solved the issue as follows:
From
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;
}
}
To
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;
}
}