I was wondering how you would update jui sortable data after deletion of an item via ajax.
i use on my ajax buttons something like this
'success'=>'js:function(data){$.fn.yiiListView.update("post_list",{});}',
for listview and grid view. i was wondering if there was something for the cjuisortable widget that did the same.
or if there was an option in the sortable widget to force an update and i could call that.
$this->widget('zii.widgets.jui.CJuiSortable', array(
'id' => 'orderList',
'items' => $sortableItems,
'options' => array(
'update'=>'js:function(event,ui){$.post("",Order:$("ul#orderList").sortable("toArray").toString()},function(data){});}',
'receive'=>'js:function (event, ui) {ui.sender.data("copied", true);}'
),
));
thanks for any help!