diff options
author | unknown <joern.zaefferer@gmail.com> | 2010-03-30 22:08:04 +0200 |
---|---|---|
committer | unknown <joern.zaefferer@gmail.com> | 2010-03-30 22:08:04 +0200 |
commit | 9dfbb3fc3ffb197bece9217ce6e0f445cf7db6ad (patch) | |
tree | ccda400f6f1f24e8ccc5ea3ebea7c2bfb0856d68 /demos | |
parent | a9c2bdc0b5472df4dd823eefb491bd4974a209a1 (diff) | |
download | jquery-ui-9dfbb3fc3ffb197bece9217ce6e0f445cf7db6ad.tar.gz jquery-ui-9dfbb3fc3ffb197bece9217ce6e0f445cf7db6ad.zip |
Shopping-Cart demo: Fix the eager activeClass on sorting
Diffstat (limited to 'demos')
-rw-r--r-- | demos/droppable/shopping-cart.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/droppable/shopping-cart.html b/demos/droppable/shopping-cart.html index c57a61fe1..4cfd2e199 100644 --- a/demos/droppable/shopping-cart.html +++ b/demos/droppable/shopping-cart.html @@ -36,7 +36,12 @@ $("<li></li>").text(ui.draggable.text()).appendTo(this); } }).sortable({ - items: "li:not(.placeholder)" + items: "li:not(.placeholder)", + sort: function() { + // gets added unintentionally by droppable interacting with sortable + // using connectWithSortable fixes this, but doesn't allow you to customize active/hoverClass options + $(this).removeClass("ui-state-default"); + } }); }); |