don't show messageBox caption if title is empty

This commit is contained in:
tophf 2018-08-07 20:05:26 +03:00
parent eff0a7030c
commit e3d1526b52

View File

@ -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;
});