Ticket #3666: sortable.patch

File sortable.patch, 1.2 KB (added by alan.castro, 11 years ago)

small change in the patch

  • ui/ui.draggable.js

    ### Eclipse Workspace Patch 1.0
    #P jquery-ui-trunk
     
    396396
    397397                var inst = $(this).data("draggable");
    398398                inst.sortables = [];
    399                 $(ui.options.connectToSortable).each(function() {
    400                         // 'this' points to a string, and should therefore resolved as query, but instead, if the string is assigned to a variable, it loops through the strings properties,
    401                         // so we have to append '' to make it anonymous again
    402                         $(this+'').each(function() {
     399               
     400                var strSortable;
     401                if (ui.options.connectToSortable instanceof Array)
     402                        strSortable = ui.options.connectToSortable.join(',');
     403                else
     404                        strSortable = ui.options.connectToSortable;
     405               
     406                $(strSortable).each(function() {
     407//                      // 'this' points to a string, and should therefore resolved as query, but instead, if the string is assigned to a variable, it loops through the strings properties,
     408//                      // so we have to append '' to make it anonymous again
     409                        $(this).each(function() {
    403410                                if($.data(this, 'sortable')) {
    404411                                        var sortable = $.data(this, 'sortable');
    405412                                        inst.sortables.push({