Fixed alertbox

This commit is contained in:
jcorporation
2018-07-05 21:11:07 +01:00
parent c494359a69
commit 51b02152be
+2 -1
View File
@@ -1344,7 +1344,8 @@ function showNotification(notificationTitle,notificationText,notificationHtml,no
if (alertTimeout)
clearTimeout(alertTimeout);
alertTimeout = setTimeout(function() {
document.getElementById('alertBox').classList.remove('alertBoxActive');
if (document.getElementById('alertBox'))
document.getElementById('alertBox').classList.remove('alertBoxActive');
setTimeout(function() {
document.getElementById('alertBox').remove();
}, 600);