mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-27 03:10:26 +00:00
fix: change alert type in notification
This commit is contained in:
parent
aa28b8e8b9
commit
82a8074800
@ -1433,6 +1433,7 @@ function showNotification(notificationTitle,notificationText,notificationHtml,no
|
||||
else {
|
||||
alertBox = document.getElementById('alertBox');
|
||||
}
|
||||
alertBox.classList.remove('alert-success', 'alert-error');
|
||||
alertBox.classList.add('alert','alert-' + notificationType);
|
||||
alertBox.innerHTML = '<div><strong>' + notificationTitle + '</strong><br/>' + notificationHtml + '</div>';
|
||||
document.getElementsByTagName('main')[0].append(alertBox);
|
||||
|
Loading…
Reference in New Issue
Block a user