aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-06-24 15:28:12 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-06-24 15:28:12 +0000
commit4f33a5b3b2612a5796a58ba552a67bee99da06d7 (patch)
tree439d9e5533b38ad304d2aaebb33b76a30e45f4b7 /ui/ui.draggable.js
parent17115b6b071c1a60920491da4f36c4005d30cce0 (diff)
downloadjquery-ui-4f33a5b3b2612a5796a58ba552a67bee99da06d7.tar.gz
jquery-ui-4f33a5b3b2612a5796a58ba552a67bee99da06d7.zip
sortable: connected lists items are not refreshed until you actually move into the connected list - this improves performance for connected lists
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index 8c52e4855..ff9d7465a 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -443,7 +443,7 @@ $.ui.plugin.add("draggable", "connectToSortable", {
instance: sortable,
shouldRevert: sortable.options.revert
});
- sortable.refresh(); //Do a one-time refresh at start to refresh the containerCache
+ sortable.refreshItems(); //Do a one-time refresh at start to refresh the containerCache
sortable.propagate("activate", e, inst);
}
});
@@ -502,8 +502,10 @@ $.ui.plugin.add("draggable", "connectToSortable", {
this.instance.options.helper = function() { return ui.helper[0]; };
e.target = this.instance.currentItem[0];
- this.instance.mouseCapture(e, true, true);
+ this.instance.mouseCapture(e, true);
this.instance.mouseStart(e, true, true);
+
+ console.log(this.instance.items);
//Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
this.instance.offset.click.top = inst.offset.click.top;