Skip to content
Permalink
Browse files

Shopping-Cart demo: Fix the eager activeClass on sorting

  • Loading branch information
jzaefferer committed Mar 30, 2010
1 parent a9c2bdc commit 9dfbb3fc3ffb197bece9217ce6e0f445cf7db6ad
Showing with 6 additions and 1 deletion.
  1. +6 −1 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");
}
});

});

0 comments on commit 9dfbb3f

Please sign in to comment.
You can’t perform that action at this time.