aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/ui.draggable.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.draggable.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.draggable.js')
-rw-r--r--ui/source/ui.draggable.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/source/ui.draggable.js b/ui/source/ui.draggable.js
index f012e6f53..ac74ae00a 100644
--- a/ui/source/ui.draggable.js
+++ b/ui/source/ui.draggable.js
@@ -118,6 +118,7 @@
this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+ this.helper.addClass("ui-draggable-dragging");
this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
return true;
},
@@ -223,6 +224,7 @@
return false;
},
clear: function() {
+ this.helper.removeClass("ui-draggable-dragging");
if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
if($.ui.ddmanager) $.ui.ddmanager.current = null;
this.helper = null;