Fix bug #1016: better tags rendering

stable
Jesús Espino 2014-09-17 11:37:34 +02:00
parent 7e2b9e0eab
commit 7fe5a10fa8
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ TagLineDirective = ($log, $rs) ->
$model.$setViewValue(normalizeTags(tags))
$scope.$watch $attrs.ngModel, (val) ->
renderTags($el, val, editable, $scope.project.tags_colors) if val?
tags_colors = if $scope.project?.tags_colors? then $scope.project.tags_colors else []
renderTags($el, val, editable, tags_colors)
bindOnce $scope, "projectId", (projectId) ->
# If not editable, no tags preloading is needed.