문제

$sortableItems = $option->getSortableItems();

$this->widget('zii.widgets.jui.CJuiSortable',
              array(
                    'id'=>'order',
                    'items'=>$sortableItems,
                    'itemTemplate'=>'<li id="{id}" class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>{content}</li>',                                
));

The widget runs and looks fine in the page. However, when I go drag and drop, many <li class="ui-state-default ui-sortable-placeholder" style="visibility: hidden;"/> are created between two elements and the items don't change their positions.

Does someone know what is happening?

도움이 되었습니까?

해결책

Due to the error oddity, it seems that you are having a jqueryUI library conflict. Try to see on your view how many scripts are loading and perhaps the issue may be gone.

:)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top