Fixing the 'filtering users' text on watchers and assigned to lightboxes

stable
Alejandro Alonso 2015-06-24 14:49:17 +02:00
parent 10b74afba3
commit 0d93812918
2 changed files with 4 additions and 4 deletions

View File

@ -469,7 +469,6 @@ AssignedToLightboxDirective = (lightboxService, lightboxKeyboardNavigationServic
}
html = usersTemplate(ctx)
html = $compile(html)($scope)
$el.find("div.watchers").html(html)
@ -537,7 +536,7 @@ module.directive("tgLbAssignedto", ["lightboxService", "lightboxKeyboardNavigati
## Watchers Lightbox directive
#############################################################################
WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService, $template) ->
WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService, $template, $compile) ->
link = ($scope, $el, $attrs) ->
selectedItem = null
usersTemplate = $template.get("common/lightbox/lightbox-assigned-to-users.html", true)
@ -566,6 +565,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
}
html = usersTemplate(ctx)
html = $compile(html)($scope)
$el.find("div.watchers").html(html)
closeLightbox = () ->
@ -616,4 +616,4 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
link:link
}
module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective])
module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", "$compile", WatchersLightboxDirective])

View File

@ -18,6 +18,6 @@
<% }) %>
<% if (showMore) { %>
div(ng-show="filteringUsers", class="more-watchers")
div(class="more-watchers")
span(translate="COMMON.ASSIGNED_TO.TOO_MANY")
<% } %>