From 01189866db427f28e1f51fc52ac5cbdb2b4b5ece Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 24 Nov 2011 10:52:47 +0100 Subject: [PATCH] Add method to get the current notification hash. --- src/main/resources/static/javascript/sone.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.7.4