fix watchers close problems

stable
Juanfran 2016-05-11 08:42:20 +02:00 committed by David Barragán Merino
parent bdb4eab44a
commit 3466bf8333
1 changed files with 7 additions and 4 deletions

View File

@ -75,12 +75,15 @@ class LightboxService extends taiga.Service
docEl = angular.element(document)
docEl.off(".lightbox")
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER
@animationFrame.add ->
$el.addClass('close')
$el.one "transitionend", =>
$el.removeAttr('style')
$el.removeClass("open").removeClass('close')
@animationFrame.add ->
$el.addClass('close')
if $el.hasClass("remove-on-close")
scope = $el.data("scope")
@ -658,7 +661,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
render(users)
$el.find("input").focus()
$el.on "click", ".user-list-single", debounce 2000, (event) ->
$el.on "click", ".user-list-single", debounce 200, (event) ->
closeLightbox()
event.preventDefault()