fix: Fix index calculation

Add a filter to count cards only in the target column.
stable
Miguel Gonzalez 2018-08-08 10:20:12 +02:00
parent 93f56da918
commit 8ed2a0d631
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) ->
dragMultipleItems = [item]
firstElement = dragMultipleItems[0]
index = $(firstElement).index('.card')
index = $(parentEl).find('tg-card').index(firstElement)
newStatus = newParentScope.s.id
usList = _.map dragMultipleItems, (item) -> $(item).scope().us