Browse Source

Merge pull request #783 from pocketcowboy/fix-missing-arg-for-index

fix missing arg for Sortable.utils.index expecting draggable selector
pull/806/merge
Lebedev Konstantin 9 years ago
parent
commit
e1a655866c
  1. 2
      ng-sortable.js

2
ng-sortable.js

@ -110,7 +110,7 @@
if (evt.clone) {
removed = angular.copy(removed);
prevItems.splice(Sortable.utils.index(evt.clone), 0, prevItems.splice(oldIndex, 1)[0]);
prevItems.splice(Sortable.utils.index(evt.clone, sortable.options.draggable), 0, prevItems.splice(oldIndex, 1)[0]);
evt.from.removeChild(evt.clone);
}
else {

Loading…
Cancel
Save