dropOnEmpty not working
dropOnEmpty not working
Hey guys I have a portlet implementation and am running into the issue
of not being able to drag back into a column once the column is
emptied. This behavior also exists on the demo on the jquery ui site
(http://jqueryui.com/demos/sortable/#portlets). Just drag all the
columns from the third column over to the first or second and you
can't drag them back.
Any suggestions. Here's the setup code for reference (or use the demo
site's):
$(".portlet-zone").sortable({
connectWith: '.portlet-zone'
, dropOnEmpty: true
, placeholder: 'ui-sortable-placeholder'
, forcePlaceHolderSize: true
, helper: 'clone'
, forceHelperSize: true
, receive: function(event, ui) {
moc.portlet.resetCssOnMove($(ui.item), $
(ui.sender), $(this));
//alert('sender_' + $(ui.sender).attr('ID'));
//alert('item_' + $(ui.item).attr('id'));
//alert('receiver_' + $(this).attr('ID'));
}
});
thanks!