Commit 1c9fbec9 by Peter Fogg Committed by cahrens

CSS classes for drop targets.

parent a0deac03
...@@ -144,11 +144,12 @@ $(document).ready(function() { ...@@ -144,11 +144,12 @@ $(document).ready(function() {
} }
// Clear out the old destination // Clear out the old destination
if(dragState.dropDestination) { 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 // Mark the new destination
if(destinationEle) { if(destinationEle) {
destinationEle.addClass('drop-destination'); destinationEle.addClass('drop-target drop-target-' + destinationInfo.attachMethod);
dragState.dropDestination = destinationEle; dragState.dropDestination = destinationEle;
} }
} }
...@@ -178,7 +179,8 @@ $(document).ready(function() { ...@@ -178,7 +179,8 @@ $(document).ready(function() {
// Clear dragging state in preparation for the next event. // Clear dragging state in preparation for the next event.
if(dragState.dropDestination) { 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); clearTimeout(dragState.expandTimer);
dragState = {}; dragState = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment