Commit 87d8598a by Don Mitchell

subsection drag

parent b3d7dc77
......@@ -99,6 +99,9 @@ $(document).ready(function() {
axis: 'y',
handle: '.section-item .drag-handle',
stack: '.id-holder',
start: initiateHesitate,
drag: checkHoverState,
stop: removeHesitate,
revert: "invalid"
});
......@@ -292,6 +295,9 @@ function checkHoverState(event, ui) {
x1 = (draggable.positionAbs || draggable.position.absolute).left + (draggable.helperProportions.width / 2),
y1 = (draggable.positionAbs || draggable.position.absolute).top + (draggable.helperProportions.height / 2);
$('.collapsed').each(function() {
// don't expand the thing being carried
if ($(draggable).is(this)) return;
$.extend(this, {offset : $(this).offset()});
var droppable = this,
......
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