 <% } %>
 """)
 
-AssignedToLightboxDirective = (lightboxService) ->
+AssignedToLightboxDirective = (lightboxService, lightboxListNavigationService) ->
     link = ($scope, $el, $attrs) ->
         selectedUser = null
         selectedItem = null

            event.preventDefault()
            target = angular.element(event.currentTarget)

            lightboxService.close($el)

            $scope.$apply ->
                $scope.$broadcast("assigned-to:added", target.data("user-id"), selectedItem)

            render(users)

            lightboxService.open($el)
            lightboxListNavigationService.init($el)

        $scope.$watch "usersSearch", (searchingText) ->
            if not searchingText?
