Detect drop with jQuery sortable

The onDrop function needs you to do certain things.

From http://johnny.github.io/jquery-sortable/#nested

onDrop: function (item, container, _super) {
    container.el.removeClass("active")
    _super(item)
}

It looks like super is a callback that needs to be called if you override onDrop. Replace your onDrop function with this and it works.

http://jsfiddle.net/xdjn2wqp/2/

The best way to learn a new library is to paste in some of their working example code and go from there.


stop: function(event, ui) {
    console.log('Sortable stop');
}