Yes, this is su ** s :-( it removes functionality and css classes / injects intervals after 1 second (to destroy, as you can see, just kill the widget, not the added classes or tags)
$('#elem').sortable({ items: 'li', placeholder: 'drop-highlight', forcePlaceholderSize: true, revert: true });
put this code in a handler when you need an "unsortable" list
function() { $("#elem").sortable("destroy"); //call widget-function destroy $("#elem li").removeClass('ui-state-default'); $("#elem li span").remove(); }
$ ("# el") is sorted ("destroy"). actually destroys the sortable functionality, it just forgets to clear.
davidkonrad
source share