X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=9aa0b8219168935b14f8293583ca024e0661422b;hb=2c68e00705b85174b25133c6544f65d8c0b18621;hp=803774ad0897d2144e8e5e15d7eb979c14bd7ad4;hpb=46bbcdbc69ed6c86f62cc9c3430404c8461924e0;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 803774a..9aa0b82 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -830,6 +830,17 @@ function createNotification(id, text, dismissable) { return notification; } +/** + * Shows the details of the notification with the given ID. + * + * @param notificationId + * The ID of the notification + */ +function showNotificationDetails(notificationId) { + $("#sone .notification#" + notificationId + " .text").show(); + $("#sone .notification#" + notificationId + " .short-text").hide(); +} + // // EVERYTHING BELOW HERE IS EXECUTED AFTER LOADING THE PAGE // @@ -954,9 +965,7 @@ $(document).ready(function() { }); /* activate status polling. */ - if ((getPageId() != undefined) && (getPageId() != "login")) { - setTimeout(getStatus, 5000); - } + setTimeout(getStatus, 5000); /* reset activity counter when the page has focus. */ $(window).focus(function() {