From ce0daae2327dceaaf5dabc0eb92df6b0f20789af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 1 Feb 2009 04:37:19 +0000 Subject: [PATCH] Draggable: Fixed #3980: Don't allow connecting to disabled sortables. --- ui/ui.draggable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 9d7df1180..2fc541f95 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -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