From b853a2626150701e920b4462861c1d1c192ee97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Fri, 14 Sep 2018 12:20:08 +0200 Subject: [PATCH] Reset confirmation lightbox strings before render --- app/coffee/modules/common/confirm.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/coffee/modules/common/confirm.coffee b/app/coffee/modules/common/confirm.coffee index 6f48616d..3c97759b 100644 --- a/app/coffee/modules/common/confirm.coffee +++ b/app/coffee/modules/common/confirm.coffee @@ -59,11 +59,11 @@ class ConfirmService extends taiga.Service el = angular.element(lightboxSelector) # Render content - el.find(".title").text(title) if title - el.find(".subtitle").text(subtitle) if subtitle + el.find(".title").text(title || '') + el.find(".subtitle").text(subtitle || '') if message message = @filter('textToHTML')(message) - el.find(".message").html(message) + el.find(".message").html(message || '') # Assign event handlers el.on "click.confirm-dialog", ".button-green", debounce 2000, (event) =>