fix delete redirection
parent
653cb01d9b
commit
32a19cb23d
|
@ -80,12 +80,17 @@ class LightboxService extends taiga.Service
|
|||
docEl.off(".lightbox")
|
||||
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER
|
||||
|
||||
$el.addClass('close-started') # don't attach animations
|
||||
|
||||
@animationFrame.add =>
|
||||
$el.addClass('close')
|
||||
|
||||
$el.one "transitionend", =>
|
||||
$el.removeAttr('style')
|
||||
$el.removeClass("open").removeClass('close')
|
||||
$el
|
||||
.removeClass("open")
|
||||
.removeClass('close')
|
||||
.removeClass('close-started')
|
||||
|
||||
if @.onClose
|
||||
@rootScope.$apply(@.onClose)
|
||||
|
@ -99,7 +104,7 @@ class LightboxService extends taiga.Service
|
|||
|
||||
|
||||
getLightboxOpen: ->
|
||||
return $(".lightbox.open")
|
||||
return $(".lightbox.open:not(.close-started)")
|
||||
|
||||
closeAll: ->
|
||||
docEl = angular.element(document)
|
||||
|
|
Loading…
Reference in New Issue