don't show messageBox caption if title is empty
This commit is contained in:
parent
eff0a7030c
commit
e3d1526b52
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user