]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Fixed #3980: Don't allow connecting to disabled sortables.
authorScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 04:37:19 +0000 (04:37 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sun, 1 Feb 2009 04:37:19 +0000 (04:37 +0000)
ui/ui.draggable.js

index 9d7df1180bfff873465cbde0fdf028d417e399a7..2fc541f952a32ec78ba46c9019d75e17da4d1e5d 100644 (file)
@@ -439,6 +439,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
                        $(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