mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
sortable: connectWith should accept string selectors (fixes #3892, backward compatibility still existant)
This commit is contained in:
parent
19aef25f79
commit
1805e7827f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user