From: Steve Urmston Date: Tue, 19 Feb 2013 22:58:31 +0000 (+0000) Subject: Draggable: Revert flag honours Sortable revert speed. Fixed #9103 Draggable: revert... X-Git-Tag: 1.10.2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a924af12b6743408903c642f84a00b0766cd17b7;p=jquery-ui.git Draggable: Revert flag honours Sortable revert speed. Fixed #9103 Draggable: revert option reset after being added to a connectedSortable. --- diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 8b388d166..27b6b4ef0 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -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