Sortable: Fixed _trigger method.

This commit is contained in:
Scott González 2009-01-16 02:25:03 +00:00
parent 8139c81d1b
commit 3887ee7e2a

View File

@ -894,8 +894,11 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
_trigger: function(type, event, inst, noPropagation) {
$.ui.plugin.call(this, type, [event, this._uiHash(inst)]);
if(!noPropagation) $.widget.prototype._trigger.call(this, type, event, this._uiHash(inst));
if(event && event.result === false) this.cancel();
if(!noPropagation) {
if ($.widget.prototype._trigger.call(this, type, event, this._uiHash(inst)) === false) {
this.cancel();
}
}
},
plugins: {},