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