aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-01 04:37:19 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-01 04:37:19 +0000
commitce0daae2327dceaaf5dabc0eb92df6b0f20789af (patch)
treef2b38492ff6a2618cae27e90e38ea01e8f14b026 /ui
parent938a95e8dc14da9e02f5e6f427108f52d9ed63d9 (diff)
downloadjquery-ui-ce0daae2327dceaaf5dabc0eb92df6b0f20789af.tar.gz
jquery-ui-ce0daae2327dceaaf5dabc0eb92df6b0f20789af.zip
Draggable: Fixed #3980: Don't allow connecting to disabled sortables.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.draggable.js1
1 files changed, 1 insertions, 0 deletions
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