Closed zaku33 closed 6 years ago
var changeStatus = function(task, newStatus) { ApiService.updateTaskStatus(AuthService.getToken(), task.project, task._id, newStatus) .then ( function success(response) {}, function error(response) { console.log(response); } ); } $scope.sortableOptions = { connectWith: '.kanban', stop: function(e, uiP) { var item = uiP.item.sortable.model; var fromIndex = uiP.item.sortable.index; var toIndex = uiP.item.sortable.dropindex; if (uiP.item.sortable.droptarget != undefined) { // Task was moved var dropTarget = uiP.item.sortable.droptarget[0].id; changeStatus(item, dropTarget); } }, }; $scope.thisTypes = ''; $scope.filterOfTypes = ['People Development', 'Outdoor']
My JS code
Your ng-repeat
s should not have filters, as noted in the developer notes in README.
- The items of ng-model must match the indexes of the DOM elements generated by the ng-repeat.
- Filters that manipulate the model (like filter, orderBy, limitTo,...) should be applied in the controller instead of the ng-repeat (refer to the provided examples).
Hi all, I have the issue like this:
When I dragged the task in Outdoor with current status is "backlog" to "inprogress or complete (depend on my choice)" , it moved the People Development from "backlog" to "inprogress or complete" instead of Outdoor
Here is my code in HTML:
Do you have any idea to solve this ? Thank you!!!