X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=06e5dafc26439a46819ef84d16f1fc8f3b53f7ad;hb=818fcaeb843238ec7bee69862d32ee4511f76604;hp=a0bbf8aa47441c97bd003ee799785dad5ed0871b;hpb=b4d6f813ec6537b1e5fc41013ff73062551c29fa;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a0bbf8a..06e5daf 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -726,6 +726,11 @@ function getStatus() { oldNotification = $("#sone #notification-area .notification#" + value.id); notification = ajaxifyNotification(createNotification(value.id, value.text, value.dismissable)).hide(); if (oldNotification.length != 0) { + if (oldNotification.find(".short-text").length > 0) { + opened = !oldNotification.find(".short-text").hasClass("hidden"); + notification.find(".short-text").toggleClass("hidden", opened); + notification.find(".text").toggleClass("hidden", !opened); + } oldNotification.replaceWith(notification.show()); } else { $("#sone #notification-area").append(notification);