Reputation: 31
Demo: http://jsfiddle.net/vMQVy/2/
Take the item, put to the trash.... Then remove that item from trash and try again put there again (same or other item) ...
Droppable still "disabled"
Part of code:
$(function() {
$(".item").draggable({
revert: 'invalid',
cursor: 'move'
});
$("#items").droppable({
drop: function( event, ui ) {
$("#trash").droppable( "enabled" )
}
});
$("#trash").droppable({
out: function() {
$(this).droppable( "enabled" )
},
drop: function( event, ui ) {
$(this).droppable( "disable" )
}
});
});
Could help me with a solution?
Upvotes: 3
Views: 2831
Reputation: 41
Have you tried as per jqueryui's documentation:
//setter
$( this ).droppable( "option", "disabled", true );
$( this ).droppable( "option", "disabled", false );
Upvotes: 4