By default the issue list is sortered by created date: fix the ordering arrow
parent
25c3a56b56
commit
d16e7c9da8
|
@ -372,7 +372,8 @@ IssuesDirective = ($log, $location) ->
|
|||
|
||||
linkOrdering = ($scope, $el, $attrs, $ctrl) ->
|
||||
# Draw the arrow the first time
|
||||
currentOrder = $ctrl.getUrlFilter("orderBy") or "subject"
|
||||
currentOrder = $ctrl.getUrlFilter("orderBy")
|
||||
if currentOrder
|
||||
icon = if startswith(currentOrder, "-") then "icon-caret-up" else "icon-caret-down"
|
||||
colHeadElement = $el.find(".row.title > div[data-fieldname='#{trim(currentOrder, "-")}']")
|
||||
colHeadElement.html("#{colHeadElement.html()}<span class='icon #{icon}'></span>")
|
||||
|
|
Loading…
Reference in New Issue