fix lightbox transitions

stable
Juanfran 2015-08-07 14:18:18 +02:00
parent 3765a75b24
commit 1456be633a
1 changed files with 5 additions and 4 deletions

View File

@ -39,13 +39,14 @@ class LightboxService extends taiga.Service
lightboxContent = $el.children().not(".close")
lightboxContent.hide()
$el.css('display', 'flex')
@animationFrame.add ->
$el.css('display', 'flex')
@animationFrame.add =>
@animationFrame.add ->
$el.addClass("open")
@animationFrame.add ->
$el.find('input,textarea').first().focus()
@animationFrame.add ->
$el.find('input,textarea').first().focus()
@animationFrame.add =>
lightboxContent.show()