]> git.wh0rd.org Git - tt-rss.git/commitdiff
parse_counters: set correct classes for feed counter elements
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:12:10 +0000 (05:12 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:12:10 +0000 (05:12 +0100)
functions.js

index 42e226192f43ce607ead79168144d1a5cc0ff4d1..574f1e6b06316e503af96fb65c8191011beced09 100644 (file)
@@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) {
                                }
        
                                if (ctr > 0) {                                  
-                                       feedctr.className = "odd";
+                                       feedctr.className = "catCtrHasUnread";
                                        if (!feedr.className.match("Unread")) {
                                                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 } } );
                                        }
                                } else {
-                                       feedctr.className = "invisible";
+                                       feedctr.className = "catCtrNoUnread";
                                        feedr.className = feedr.className.replace("Unread", "");
                                }                       
                        }