From: David ‘Bombe’ Roden Date: Thu, 7 Apr 2011 09:25:33 +0000 (+0200) Subject: Use convenience method to get the notification for the ID. X-Git-Tag: 0.6.1^2~26^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd423714c75ceff757c493a0fe863c5b481ee66d;p=Sone.git Use convenience method to get the notification for the ID. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index f49778b..d9d6f06 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -904,7 +904,7 @@ function getStatus() { }); /* process notifications. */ $.each(data.notifications, function(index, value) { - oldNotification = $("#sone #notification-area .notification#" + value.id); + oldNotification = getNotification(value.id); notification = ajaxifyNotification(createNotification(value.id, value.text, value.dismissable)).hide(); if (oldNotification.length != 0) { if ((oldNotification.find(".short-text").length > 0) && (notification.find(".short-text").length > 0)) {