]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Revert flag honours Sortable revert speed. Fixed #9103 Draggable: revert...
authorSteve Urmston <steve@urm.st>
Tue, 19 Feb 2013 22:58:31 +0000 (22:58 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 21 Feb 2013 13:20:41 +0000 (08:20 -0500)
ui/jquery.ui.draggable.js

index 8b388d16650e0ce82d1189a8e3030d7db3f41f25..27b6b4ef042ad1729af78afea7389ef4472ef94a 100644 (file)
@@ -600,7 +600,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
 
                                //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: "valid/invalid"
                                if(this.shouldRevert) {
-                                       this.instance.options.revert = true;
+                                       this.instance.options.revert = this.shouldRevert;
                                }
 
                                //Trigger the stop of the sortable