From 009378cadc6e88cf2ead9bb73d6019336e5959cc Mon Sep 17 00:00:00 2001 From: Scott González Date: Sat, 20 Feb 2010 02:31:49 +0000 Subject: Sortable: Only trigger over event when changing the current container. Fixes #5111 - 1.8rc1 sortable#over method bugged -- called along with #sort instead of on mouseover. --- ui/jquery.ui.sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index 66e4f00a4..d29e708e8 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -724,10 +724,10 @@ $.widget("ui.sortable", $.ui.mouse, { //Update the placeholder this.options.placeholder.update(this.currentContainer, this.placeholder); + this.containers[innermostIndex]._trigger("over", event, this._uiHash(this)); + this.containers[innermostIndex].containerCache.over = 1; } - this.containers[innermostIndex]._trigger("over", event, this._uiHash(this)); - this.containers[innermostIndex].containerCache.over = 1; }, -- cgit v1.2.3