aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.droppable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 16:50:18 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-05-25 16:50:18 +0000
commit57266e1ba467e67120e023491082db31ce1fa787 (patch)
treeaa69dba5d1fa110aecb78e0fd552e1b8dab770d9 /ui/source/ui.droppable.js
parent0f9bb627ee2337b980cf4a3c8627f6ac5b3d87ef (diff)
downloadjquery-ui-57266e1ba467e67120e023491082db31ce1fa787.tar.gz
jquery-ui-57266e1ba467e67120e023491082db31ce1fa787.zip
draggable, droppable: added a class do the active draggable helper, that will be ignored by droppables as droppable target (fixes #2886)
Diffstat (limited to 'ui/source/ui.droppable.js')
-rw-r--r--ui/source/ui.droppable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/source/ui.droppable.js b/ui/source/ui.droppable.js
index 7dcd86b28..546eda7ff 100644
--- a/ui/source/ui.droppable.js
+++ b/ui/source/ui.droppable.js
@@ -96,7 +96,7 @@
if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
var childrenIntersection = false;
- this.element.find(".ui-droppable").each(function() {
+ this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() {
var inst = $.data(this, 'droppable');
if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {
childrenIntersection = true; return false;