diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-07 17:43:15 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-07 17:43:15 +0000 |
commit | ba757146216704c60feeda1dca5cfc08387b6ed3 (patch) | |
tree | 317ee4fdcc8e1332504875209ab43e022c67d38e /ui/ui.droppable.js | |
parent | 5eca84265fc8d7b5c7e5c9f508aded20109ebe32 (diff) | |
download | jquery-ui-ba757146216704c60feeda1dca5cfc08387b6ed3.tar.gz jquery-ui-ba757146216704c60feeda1dca5cfc08387b6ed3.zip |
draggable,droppable,sortable: properly implemented cssNamespace option across plugins (selectable & resizable to go, so those options should stay undocumented until all plugins are converted. Fixes #3707)
Diffstat (limited to 'ui/ui.droppable.js')
-rw-r--r-- | ui/ui.droppable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js index ae6f861c2..1d2f27e75 100644 --- a/ui/ui.droppable.js +++ b/ui/ui.droppable.js @@ -42,7 +42,7 @@ $.widget("ui.droppable", { drop.splice(i, 1); this.element - .removeClass("ui-droppable-disabled") + .removeClass(this.options.cssNamespace+"-droppable "+this.options.cssNamespace+"-droppable-disabled") .removeData("droppable") .unbind(".droppable"); }, @@ -105,7 +105,7 @@ $.widget("ui.droppable", { 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(":data(droppable)").not(".ui-draggable-dragging").each(function() { + this.element.find(":data(droppable)").not("."+draggable.options.cssNamespace+"-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; |