Ticket #5811: 0001-Draggable-Calling-refreshPositions-instead-of-_refre.patch

File 0001-Draggable-Calling-refreshPositions-instead-of-_refre.patch, 1.0 KB (added by nathansobo, 12 years ago)

Patch: 3eadf2bcab9acdd0e15608299377e12e87d325bf

  • ui/jquery.ui.draggable.js

    From 3eadf2bcab9acdd0e15608299377e12e87d325bf Mon Sep 17 00:00:00 2001
    From: Nathan Sobo <[email protected]>
    Date: Wed, 14 Apr 2010 19:40:31 -0600
    Subject: [PATCH] Draggable: Calling refreshPositions instead of _refreshItems when dragging into a connected sortable. Fixed: #5563 - Draggable li with connectToSortable option cannot be dropped on the connected sortable ol
    
    ---
     ui/jquery.ui.draggable.js |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
    index 9496ce3..d13107a 100644
    a b $.ui.plugin.add("draggable", "connectToSortable", { 
    475475                                        instance: sortable,
    476476                                        shouldRevert: sortable.options.revert
    477477                                });
    478                                 sortable._refreshItems();       //Do a one-time refresh at start to refresh the containerCache
     478                                sortable.refreshPositions();    //Do a one-time refreshPositions at start to initialize the containerCache
    479479                                sortable._trigger("activate", event, uiSortable);
    480480                        }
    481481                });