diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-02-20 02:31:49 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-02-20 02:31:49 +0000 |
commit | 009378cadc6e88cf2ead9bb73d6019336e5959cc (patch) | |
tree | 7753f9387212019e3d965839cc0bc30800ecdf12 | |
parent | 8185ba0207bbde20e8e9d31470538042b3e49016 (diff) | |
download | jquery-ui-009378cadc6e88cf2ead9bb73d6019336e5959cc.tar.gz jquery-ui-009378cadc6e88cf2ead9bb73d6019336e5959cc.zip |
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.
-rw-r--r-- | ui/jquery.ui.sortable.js | 4 |
1 files 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; }, |