 
 # the lightboxContent hide/show doesn't have sense because is an IE hack
 class LightboxService extends taiga.Service
-    constructor: (@animationFrame) ->
+    constructor: (@animationFrame, @q) ->
 
     open: ($el) ->
+        defered = @q.defer()
+
         lightboxContent = $el.children().not(".close")
         lightboxContent.hide()
 

            return _.contains(username, text)

        render = (selected, text) ->
            $el.find("input").focus()

            users = _.clone($scope.activeUsers, true)
            users = _.reject(users, {"id": selected.id}) if selected?
            users = _.filter(users, _.partial(filterUsers, text)) if text?


        # Render the specific list of users.
        render = (users) ->
            ctx = {
                selected: false
                users: _.first(users, 5)
