Reputation: 605
$(".profile_icon").liveDraggable({
start: function(event, ui){
$("#team_deletezone").show();
$(this).addClass('valid');
},
stop: function(event, ui){
$("#team_deletezone").fadeOut();
},
containment: 'document',
helper: 'clone',
opacity: 0.70,
zIndex:10000,
appendTo: "body"
});
So the item drags and then just doesn't do anything. On the second drop it fires properly?
When the item is dropped it should give a JS alert();
Check out the JSfiddle
Upvotes: 0
Views: 80
Reputation:
Just change liveDroppable
to droppable
and it works:
$("#team_deletezone").droppable({
tolerance: 'pointer',
drop: function( event, ui ) {
alert("This Worked!");
}
});
Upvotes: 1