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.

This commit is contained in:
Steven Fuchs 2011-12-22 15:57:59 -05:00
parent b6dd14a968
commit 4d6f53401b

View file

@ -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");
}
}
};