Draggable: Avoid conflict with droppable $.ui.intersect. Now using $.ui.intersects.

This commit is contained in:
Eduardo Lundgren 2008-11-10 05:56:06 +00:00
parent f00347a83a
commit ad0cdb776e

View File

@ -606,7 +606,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
var itemHeight = o.height, itemWidth = o.width; var itemHeight = o.height, itemWidth = o.width;
var itemTop = o.top, itemLeft = o.left; var itemTop = o.top, itemLeft = o.left;
return $.ui.intersect(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth); return $.ui.intersects(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth);
}; };
$.each(inst.sortables, function(i) { $.each(inst.sortables, function(i) {