X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=abf3fbd68610ed5b37306600db42c1b6f2fbaf3c;hb=01189866db427f28e1f51fc52ac5cbdb2b4b5ece;hp=a3dbc6488427e3a81a53f11b13e4da0863f6ff98;hpb=7d5aff5d52afa5d9725ce252c846b1aca6f1a761;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a3dbc64..abf3fbd 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1088,6 +1088,14 @@ 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(); +} + +/** * Retrieves element IDs from notification elements. * * @param notification