From 3c7b9ed490ea356d92df2f61c7a91ac74934a646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 6 Aug 2014 15:09:29 +0200 Subject: [PATCH] Minor fix --- app/coffee/modules/issues/list.coffee | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/coffee/modules/issues/list.coffee b/app/coffee/modules/issues/list.coffee index 15587593..134e2f51 100644 --- a/app/coffee/modules/issues/list.coffee +++ b/app/coffee/modules/issues/list.coffee @@ -200,7 +200,6 @@ class IssuesController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi name = "status" @scope.httpParams[name] = values - console.log "prepared filters", @scope.httpParams promise = @rs.issues.list(@scope.projectId, @scope.httpParams).then (data) => @scope.issues = data.models @scope.page = data.current @@ -355,8 +354,8 @@ IssuesDirective = ($log, $location) -> linkOrdering = ($scope, $el, $attrs, $ctrl) -> # Draw the arrow the first time - currentOrder = $ctrl.getUrlFilter("orderBy") - icon = if startswith(currentOrder, "-") then "icon-arrow-up" else "icon-arrow-bottom" + currentOrder = $ctrl.getUrlFilter("orderBy") or "subject" + 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()}") @@ -373,7 +372,7 @@ IssuesDirective = ($log, $location) -> $ctrl.loadIssues().then -> # Update the arrow $el.find(".row.title > div > span.icon").remove() - icon = if startswith(finalOrder, "-") then "icon-arrow-up" else "icon-arrow-bottom" + icon = if startswith(finalOrder, "-") then "icon-caret-up" else "icon-caret-down" target.html("#{target.html()}") ######################### @@ -494,7 +493,6 @@ IssuesFiltersDirective = ($log, $location) -> # Angular Watchers $scope.$on "filters:loaded", (ctx, filters) -> - console.log filters initializeSelectedFilters(filters) selectSubjectFilter = debounce 400, (value) ->