1
0
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:
jcorporation 2018-07-18 23:50:38 +01:00
parent aa28b8e8b9
commit 82a8074800

View File

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