From 4d6f53401b6a83c192d4849ea6b241decec8ac45 Mon Sep 17 00:00:00 2001 From: Steven Fuchs Date: Thu, 22 Dec 2011 15:57:59 -0500 Subject: [PATCH] makes sure that the large notification count badge on the notifications page gets incremented and decremented. Not the neatest solution since this code can be called from many pages, but shouldn't cause any problems in that case. --- public/javascripts/widgets/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/javascripts/widgets/notifications.js b/public/javascripts/widgets/notifications.js index f4a873a82..1f0eec25a 100644 --- a/public/javascripts/widgets/notifications.js +++ b/public/javascripts/widgets/notifications.js @@ -57,12 +57,15 @@ if(self.badge.text() !== "") { self.badge.text(self.count); + $( ".notification_count" ).text(self.count); if(self.count === 0) { self.badge.addClass("hidden"); + $( ".notification_count" ).addClass("hidden"); } else if(self.count === 1) { self.badge.removeClass("hidden"); + $( ".notification_count" ).removeClass("hidden"); } } };