Browse Source

Merge pull request #715 from livelazily/dev

small fix with #373
pull/744/head
Lebedev Konstantin 9 years ago
parent
commit
504f868d4a
  1. 5
      ng-sortable.js

5
ng-sortable.js

@ -123,6 +123,11 @@
} }
else { else {
items.splice(newIndex, 0, items.splice(oldIndex, 1)[0]); items.splice(newIndex, 0, items.splice(oldIndex, 1)[0]);
// move ng-repeat comment node to right position
if (nextSibling.nodeType === Node.COMMENT_NODE) {
evt.from.insertBefore(nextSibling, evt.item.nextSibling);
}
} }
scope.$apply(); scope.$apply();

Loading…
Cancel
Save