Ticket #3666: sortable-bug-3666.patch

File sortable-bug-3666.patch, 736 bytes (added by alan.castro, 11 years ago)

better patch than the last one

  • ui/ui.draggable.js

    ### Eclipse Workspace Patch 1.0
    #P jquery-ui-trunk
     
    433433
    434434                var inst = $(this).data("draggable");
    435435                inst.sortables = [];
     436               
     437                if (typeof ui.options.connectToSortable === 'string') {
     438                        ui.options.connectToSortable = [ui.options.connectToSortable];
     439                }
     440               
    436441                $(ui.options.connectToSortable).each(function() {
    437442                        // '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,
    438443                        // so we have to append '' to make it anonymous again