From e3d1526b524678442e20ec3db66a3d2f47cf1341 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 7 Aug 2018 20:05:26 +0300 Subject: [PATCH] don't show messageBox caption if title is empty --- msgbox/msgbox.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/msgbox/msgbox.js b/msgbox/msgbox.js index b18c2f49..81d7b8fe 100644 --- a/msgbox/msgbox.js +++ b/msgbox/msgbox.js @@ -40,6 +40,11 @@ function messageBox({ onshow(messageBox.element); } + if (!$('#message-box-title').textContent) { + $('#message-box-title').hidden = true; + $('#message-box-close-icon').hidden = true; + } + return new Promise(_resolve => { messageBox.resolve = _resolve; });