diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-01 04:37:19 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-01 04:37:19 +0000 |
commit | ce0daae2327dceaaf5dabc0eb92df6b0f20789af (patch) | |
tree | f2b38492ff6a2618cae27e90e38ea01e8f14b026 /ui/ui.draggable.js | |
parent | 938a95e8dc14da9e02f5e6f427108f52d9ed63d9 (diff) | |
download | jquery-ui-ce0daae2327dceaaf5dabc0eb92df6b0f20789af.tar.gz jquery-ui-ce0daae2327dceaaf5dabc0eb92df6b0f20789af.zip |
Draggable: Fixed #3980: Don't allow connecting to disabled sortables.
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r-- | ui/ui.draggable.js | 1 |
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 |