diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-18 09:51:50 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-18 09:51:50 +0000 |
commit | 9c0942d14f25909bf8e3b8064965323c280f4274 (patch) | |
tree | ce5975bebe704a5da7cebf7a129a6c6cde173dfa /ui/ui.droppable.js | |
parent | c40491f1879bcf82246059cb40a6a610cac54b18 (diff) | |
download | jquery-ui-9c0942d14f25909bf8e3b8064965323c280f4274.tar.gz jquery-ui-9c0942d14f25909bf8e3b8064965323c280f4274.zip |
droppable: $.ui.ddmanager.drop now returns false in case of non-drop, or the actual droppable (instead of true) in the case of a drop.
draggable: implemented patch that allows revert to be a callback, receives one argument which is the droppable (implements #3175)
Diffstat (limited to 'ui/ui.droppable.js')
-rw-r--r-- | ui/ui.droppable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.droppable.js b/ui/ui.droppable.js index 839ac0311..5d14a64d2 100644 --- a/ui/ui.droppable.js +++ b/ui/ui.droppable.js @@ -107,7 +107,7 @@ $.widget("ui.droppable", { if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) { $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]); this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop); - return true; + return this.element; } return false; |