mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Shopping-Cart demo: Fix the eager activeClass on sorting
This commit is contained in:
parent
a9c2bdc0b5
commit
9dfbb3fc3f
@ -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");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user