fix projects sort

stable
Juanfran 2015-05-27 07:55:05 +02:00
parent 60ccc7d19f
commit d8b8af7e00
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ SortProjectsDirective = (currentUserService) ->
index = itemEl.index()
sorted_project_ids = _.map(scope.projects.toJS(), (p) -> p.id)
sorted_project_ids = _.without(sorted_project_ids, project.id)
sorted_project_ids = _.without(sorted_project_ids, project.get("id"))
sorted_project_ids.splice(index, 0, project.get('id'))
sortData = []
@ -35,4 +35,4 @@ SortProjectsDirective = (currentUserService) ->
return directive
angular.module("taigaProjects").directive("tgSortProjects", ["tgProjectsService", SortProjectsDirective])
angular.module("taigaProjects").directive("tgSortProjects", ["tgCurrentUserService", SortProjectsDirective])