Here's my problem:
I have two lists, one sortable, the other's items draggable and
connected to the sortable list via "connectToSortable".
I don't want the user to be able to drag an item over to the sortable
list more than once.
I've tried
$('#draggable > li').draggable({
connectToSortable: '#sortable',
start: function(){
if( itemAlreadyExists(this) )
return false;
}
});
but obviously returning false doesn't cancel the drag.
Another way I could do this is to detect when an item is successfully
dropped into the sortable list, add the item's "id" into the
draggables "cancel" option, but for the life of me I cannot determine
when a drop is successful.
If someone could help me figure out either of these two routes, I
would be most grateful.
Cheers, Kelso.
--
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en.