Shopping-Cart demo: Fix the eager activeClass on sorting

This commit is contained in:
unknown 2010-03-30 22:08:04 +02:00
parent a9c2bdc0b5
commit 9dfbb3fc3f

View File

@ -36,7 +36,12 @@
$("<li></li>").text(ui.draggable.text()).appendTo(this); $("<li></li>").text(ui.draggable.text()).appendTo(this);
} }
}).sortable({ }).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");
}
}); });
}); });