Skip to content
Permalink
Browse files

sortable: connectWith should accept string selectors (fixes #3892, ba…

…ckward compatibility still existant)
  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jan 20, 2009
1 parent 19aef25 commit 1805e7827f3b81fc4d4987a223ecede0334626d3
Showing with 3 additions and 2 deletions.
  1. +3 −2 ui/ui.sortable.js
@@ -469,8 +469,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
var queries = [];

if(this.options.connectWith && connected) {
for (var i = this.options.connectWith.length - 1; i >= 0; i--){
var cur = $(this.options.connectWith[i]);
var connectWith = this.options.connectWith.constructor == String ? [this.options.connectWith] : this.options.connectWith;
for (var i = connectWith.length - 1; i >= 0; i--){
var cur = $(connectWith[i]);
for (var j = cur.length - 1; j >= 0; j--){
var inst = $.data(cur[j], 'sortable');
if(inst && inst != this && !inst.options.disabled) {

0 comments on commit 1805e78

Please sign in to comment.
You can’t perform that action at this time.