From 35e1b91d8136988747f31b98d6ce73da98c737ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Mon, 13 Aug 2018 13:48:54 +0200 Subject: [PATCH] Avoid double requests after reopen confirm dialogs --- app/coffee/modules/common/confirm.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/common/confirm.coffee b/app/coffee/modules/common/confirm.coffee index 0e7657df..6e7cc556 100644 --- a/app/coffee/modules/common/confirm.coffee +++ b/app/coffee/modules/common/confirm.coffee @@ -82,7 +82,10 @@ class ConfirmService extends taiga.Service defered.reject() @.hide(el) - @lightboxService.open(el) + onEsc = () => + @.hide(el) + + @lightboxService.open(el, null, onEsc) return defered.promise