parse_counters: set correct classes for feed counter elements

This commit is contained in:
Andrew Dolgov 2008-08-08 05:12:10 +01:00
parent bd51294a51
commit cbcbb08407
1 changed files with 2 additions and 2 deletions

View File

@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) {
} }
if (ctr > 0) { if (ctr > 0) {
feedctr.className = "odd"; feedctr.className = "catCtrHasUnread";
if (!feedr.className.match("Unread")) { if (!feedr.className.match("Unread")) {
var is_selected = feedr.className.match("Selected"); var is_selected = feedr.className.match("Selected");
@ -552,7 +552,7 @@ function parse_counters(reply, scheduled_call) {
queue: { position:'end', scope: 'EFQ-' + id, limit: 1 } } ); queue: { position:'end', scope: 'EFQ-' + id, limit: 1 } } );
} }
} else { } else {
feedctr.className = "invisible"; feedctr.className = "catCtrNoUnread";
feedr.className = feedr.className.replace("Unread", ""); feedr.className = feedr.className.replace("Unread", "");
} }
} }