Now the assignedTo and createdBy filters are sorted by name

stable
Jesús Espino 2014-08-18 14:08:48 +02:00
parent 513a35cda9
commit 8778391d8a
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
obj.selected = true if isSelected("assignedTo", obj.id) obj.selected = true if isSelected("assignedTo", obj.id)
return obj return obj
@scope.filters.assignedTo = _.sortBy(@scope.filters.assignedTo, "name")
@scope.filters.createdBy = _.map data.created_by, (t) => @scope.filters.createdBy = _.map data.created_by, (t) =>
obj = { obj = {
@ -184,6 +185,7 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
obj.selected = true if isSelected("createdBy", obj.id) obj.selected = true if isSelected("createdBy", obj.id)
return obj return obj
@scope.filters.createdBy = _.sortBy(@scope.filters.createdBy, "name")
@scope.filters.tags = _.map data.tags, (t) => @scope.filters.tags = _.map data.tags, (t) =>
obj = { obj = {