X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=591afa022e039890d5ded16e4a53866c12a1b694;hb=67c3d6cf09d8e7784d6cc5e0c4116b12fe15dd00;hp=a3dbc6488427e3a81a53f11b13e4da0863f6ff98;hpb=b371274f1185ad36e7d450559766678be2cb5fe1;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a3dbc64..591afa0 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1088,6 +1088,24 @@ function ajaxifyNotification(notification) { } /** + * Returns the notification hash. This hash is used in {@link #getStatus()} to + * determine whether the notifications changed and need to be reloaded. + */ +public getNotificationHash() { + return $("#sone #notification-area #notification-hash").text(); +} + +/** + * Sets the notification hash. + * + * @param notificationHash + * The new notification hash + */ +public setNotificationHash(notificationHash) { + $("#sone #notification-area #notification-hash").text(notificationHash); +} + +/** * Retrieves element IDs from notification elements. * * @param notification