js function fails

Hi,

since I’ve upgraded to Yii 1.11, the code below raises a JS error. If I remove the ‘js:’ prefix on the success function, everything works fine again.





		echo CHtml::ajaxLink('delete selection',

   			$this->createUrl('deleteBulkSent'),

   			array(

      			'type'	=> 'post',

      			'data'	=> "js:{ids:$.fn.yiiGridView.getSelection('message-grid'), YII_CSRF_TOKEN : '".$csrfToken."'}",

      			'success' => 'js:function(data, textStatus, XMLHttpRequest){'.

      					'if(data!=0)$.fn.yiiGridView.update("message-grid")}'

   			),

				array(

					'confirm' => 'are you sure ?',

				)

		);




If I understood correctly upgrade instructions, there should not be any change with 1.11, but obviously I missed something.

Thanks in advance for your help.

ciao

B)

Hi,

I dont know if the probleme persiste or not but there are a fix in yii 1.1.12

Hi Riemann,

yes you’re right, it seems to be the exact same issue, and it was fixed 12 hours ago … I will rollback to 1.10 then, and wait for 1.12.

Thanks for your help

ciao

B)

1.1.12 will be there this weekend if we’ll be able to solve the rest of the issues planned.