r1946 - trunk/ui

r1946 - trunk/ui


Author: scott.gonzalez
Date: Sat Jan 31 20:37:19 2009
New Revision: 1946
Modified:
trunk/ui/ui.draggable.js
Log:
Draggable: Fixed #3980: Don't allow connecting to disabled sortables.
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js    (original)
+++ trunk/ui/ui.draggable.js    Sat Jan 31 20:37:19 2009
@@ -439,6 +439,7 @@
            $(typeof this == 'string' ? this+'': this).each(function() {
                if($.data(this, 'sortable')) {
                    var sortable = $.data(this, 'sortable');
+                    if (sortable.options.disabled) { return; }
                    inst.sortables.push({
                        instance: sortable,
                        shouldRevert: sortable.options.revert