refreshPositions - does it work?
Hi, so I'm trying to call the refreshPositions method inside the
function that is called on 'update' within the original sortable - but
it doesn't seem to work, because when I iterate over the items in my
list, it pulls the original PLUS the newly positioned.
Right now I have a fix where I delay the updating function, and that
fixes the issue of the original being found, but I'd like to use the
refreshPositions, because I believe that could also solve my issues.
Can someone show me how I should use this method?
$("#nav").sortable({
items: "li",
revert: true,
tree: true,
containment: $('#nav'),
update: processList
});
function processList() {
$("#nav").sortable('refreshPositions');
.........