From 05d4d230f2c7294f5b061c251a1ea961eb402dd4 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 27 Jan 2015 12:51:50 +0100 Subject: [PATCH] fix #2024 - fix watchers --- app/coffee/modules/common/lightboxes.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 7352c902..db59fc1c 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -518,9 +518,10 @@ module.directive("tgLbAssignedto", ["lightboxService", "lightboxKeyboardNavigati ## Watchers Lightbox directive ############################################################################# -WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService) -> +WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService, $template) -> link = ($scope, $el, $attrs) -> selectedItem = null + usersTemplate = $template.get("common/lightbox/lightbox-assigned-to-users.html", true) # Get prefiltered users by text # and without now watched users. @@ -595,7 +596,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS link:link } -module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", WatchersLightboxDirective]) +module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective]) ############################################################################# ## Notion Lightbox Directive