fix #2024 - fix watchers

stable
Juanfran 2015-01-27 12:51:50 +01:00
parent 3c0269cc7f
commit 05d4d230f2
1 changed files with 3 additions and 2 deletions

View File

@ -518,9 +518,10 @@ module.directive("tgLbAssignedto", ["lightboxService", "lightboxKeyboardNavigati
## Watchers Lightbox directive ## Watchers Lightbox directive
############################################################################# #############################################################################
WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService) -> WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationService, $template) ->
link = ($scope, $el, $attrs) -> link = ($scope, $el, $attrs) ->
selectedItem = null selectedItem = null
usersTemplate = $template.get("common/lightbox/lightbox-assigned-to-users.html", true)
# Get prefiltered users by text # Get prefiltered users by text
# and without now watched users. # and without now watched users.
@ -595,7 +596,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
link:link link:link
} }
module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", WatchersLightboxDirective]) module.directive("tgLbWatchers", ["$tgRepo", "lightboxService", "lightboxKeyboardNavigationService", "$tgTemplate", WatchersLightboxDirective])
############################################################################# #############################################################################
## Notion Lightbox Directive ## Notion Lightbox Directive