From: David ‘Bombe’ Roden Date: Mon, 2 May 2011 08:17:12 +0000 (+0200) Subject: Fix messages to recipients not working when a new-sone notification is displayed. X-Git-Tag: 0.6.4^2~31 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7d2dcae65d273c99dc323be478f7d79eafa35ef4;p=Sone.git Fix messages to recipients not working when a new-sone notification is displayed. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 3088aff..e300214 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -923,8 +923,8 @@ function checkForRemovedSones(oldNotification, newNotification) { if (getNotificationId(oldNotification) != "new-sone-notification") { return; } - oldIds = getElementIds(oldNotification, ".sone-id"); - newIds = getElementIds(newNotification, ".sone-id"); + oldIds = getElementIds(oldNotification, ".new-sone-id"); + newIds = getElementIds(newNotification, ".new-sone-id"); $.each(oldIds, function(index, value) { if ($.inArray(value, newIds) == -1) { markSoneAsKnown(getSone(value), true); @@ -996,7 +996,7 @@ function getStatus() { }); if (!foundNotification) { if (notificationId == "new-sone-notification") { - $(".sone-id", this).each(function(index, element) { + $(".new-sone-id", this).each(function(index, element) { soneId = $(this).text(); markSoneAsKnown(getSone(soneId), true); }); diff --git a/src/main/resources/templates/notify/newSoneNotification.html b/src/main/resources/templates/notify/newSoneNotification.html index 03cacf2..64985d8 100644 --- a/src/main/resources/templates/notify/newSoneNotification.html +++ b/src/main/resources/templates/notify/newSoneNotification.html @@ -12,7 +12,7 @@
<%= Notification.NewSone.Text|l10n|html> <%foreach sones sone> - + <% sone.niceName|html><%notlast>,<%/notlast><%last>.<%/last> <%/foreach>