CSS classes for drop targets.

This commit is contained in:
Peter Fogg
2013-08-07 13:04:21 -04:00
committed by cahrens
parent a0deac0399
commit 1c9fbec94b

View File

@@ -144,11 +144,12 @@ $(document).ready(function() {
}
// Clear out the old destination
if(dragState.dropDestination) {
dragState.dropDestination.removeClass('drop-destination');
dragState.dropDestination.removeClass('drop-target drop-target-prepend'
+ ' drop-target-before drop-target-after');
}
// Mark the new destination
if(destinationEle) {
destinationEle.addClass('drop-destination');
destinationEle.addClass('drop-target drop-target-' + destinationInfo.attachMethod);
dragState.dropDestination = destinationEle;
}
}
@@ -178,7 +179,8 @@ $(document).ready(function() {
// Clear dragging state in preparation for the next event.
if(dragState.dropDestination) {
dragState.dropDestination.removeClass('drop-destination');
dragState.dropDestination.removeClass('drop-target drop-target-prepend'
+ ' drop-target-before drop-target-after');
}
clearTimeout(dragState.expandTimer);
dragState = {};