From be4ac215949ed2e9259420839c60f84138b8032f Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 15 Nov 2016 08:52:35 +0100 Subject: [PATCH] [Backport] fix delete redirection --- app/coffee/modules/common/lightboxes.coffee | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/common/lightboxes.coffee b/app/coffee/modules/common/lightboxes.coffee index 3cfeaed1..e8e6c862 100644 --- a/app/coffee/modules/common/lightboxes.coffee +++ b/app/coffee/modules/common/lightboxes.coffee @@ -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)