From 0d9381291848770d3ddd231e5ebabeadfc373709 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Wed, 24 Jun 2015 14:49:17 +0200 Subject: [PATCH] Fixing the 'filtering users' text on watchers and assigned to lightboxes --- app/coffee/modules/common/lightboxes.coffee | 6 +++--- .../common/lightbox/lightbox-assigned-to-users.jade | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index c48c7300..a5b5bff7 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -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]) diff --git a/app/partials/common/lightbox/lightbox-assigned-to-users.jade b/app/partials/common/lightbox/lightbox-assigned-to-users.jade index 792d4ec3..6dd8e65b 100644 --- a/app/partials/common/lightbox/lightbox-assigned-to-users.jade +++ b/app/partials/common/lightbox/lightbox-assigned-to-users.jade @@ -18,6 +18,6 @@ <% }) %> <% if (showMore) { %> -div(ng-show="filteringUsers", class="more-watchers") +div(class="more-watchers") span(translate="COMMON.ASSIGNED_TO.TOO_MANY") <% } %>