From: David ‘Bombe’ Roden Date: Thu, 24 Nov 2011 09:52:47 +0000 (+0100) Subject: Add method to get the current notification hash. X-Git-Tag: 0.7.5^2~4^2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=01189866db427f28e1f51fc52ac5cbdb2b4b5ece;p=Sone.git Add method to get the current notification hash. --- 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