Browse Source

fix missing arg for Sortable.utils.index expecting draggable selector

pull/783/head
pocketcowboy 9 years ago
parent
commit
0663cf9b0a
  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