-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Description
in my work there has to area A and B , A has some dragable elements, but A don't accept drop action, B has some elements too, but the elements in area B can drag and drop any where but cant drop to area A. when i refresh the area B twice ,via ajax the elements in area A cant't be drag to area B , the elements in area B can't do and drag and drop job (only work in first time);
here is the area A code:
$(function(){
$(".ext_list").sortable({
group: 'ext-drop',
drop: false,
onDragStart: function (item, container, _super) {
console.log(container, container.options);
// Duplicate items of the no drop area
if(!container.options.drop)
{
if(container.el.hasClass('ext_list'))
return false;
item.clone().insertAfter(item)
}
_super(item)
}
});
});here is the area B code which load via AJAX:
$(".group_wrap .position_extension_list").each(function(){
$(this).sortable({
group: 'ext-drop',
handle: 'i.icon-move'
});
});Metadata
Metadata
Assignees
Labels
No labels