Draggable items from 3 to 1 are reset to 2.
This may not be the ideal solution, but if you turn off the removal of collapsed lists, it works fine. Update your click handler (you shouldn't use it either .live!)
$weekday.live('click', function() {
var $this = $(this),
$list = $this.next('ul');
$this.toggleClass('open').next('ul').slideToggle().toggleClass('closed');
if ($this.hasClass('open')) {
$list.sortable('disable');
} else {
$list.sortable('enable');
}
});
Have a look here: http://jsfiddle.net/BNJzB/57/
source
share