Skip to content
Permalink
Browse files

sortable: returning false in any callback will now call this.cancenl(…

…) to cancel the ongoing action
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Nov 6, 2008
1 parent b420cbb commit 2619fc8073074f3de84559a3a0ae8c5076664aa9
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/ui.sortable.js
@@ -104,7 +104,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {

_propagate: function(n,e,inst, noPropagation) {
$.ui.plugin.call(this, n, [e, this._ui(inst)]);
if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this._ui(inst)], this.options[n]);
var dontCancel = !noPropagation ? this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this._ui(inst)], this.options[n]) : true;
if(dontCancel === false) this.cancel();
},

serialize: function(o) {

0 comments on commit 2619fc8

Please sign in to comment.
You can’t perform that action at this time.