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", { |
475 | 475 | instance: sortable, |
476 | 476 | shouldRevert: sortable.options.revert |
477 | 477 | }); |
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 |
479 | 479 | sortable._trigger("activate", event, uiSortable); |
480 | 480 | } |
481 | 481 | }); |