Draggable: Fixed #3980: Don't allow connecting to disabled sortables.

This commit is contained in:
Scott González 2009-02-01 04:37:19 +00:00
parent 938a95e8dc
commit ce0daae232

View File

@ -439,6 +439,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
$(typeof this == 'string' ? this+'': this).each(function() { $(typeof this == 'string' ? this+'': this).each(function() {
if($.data(this, 'sortable')) { if($.data(this, 'sortable')) {
var sortable = $.data(this, 'sortable'); var sortable = $.data(this, 'sortable');
if (sortable.options.disabled) { return; }
inst.sortables.push({ inst.sortables.push({
instance: sortable, instance: sortable,
shouldRevert: sortable.options.revert shouldRevert: sortable.options.revert