]> git.wh0rd.org Git - tt-rss.git/commitdiff
headlins: feed icon tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:33:23 +0000 (05:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 04:33:23 +0000 (05:33 +0100)
functions.js
functions.php
tt-rss.css

index 574f1e6b06316e503af96fb65c8191011beced09..351f4dcc35489edffbfffddd9c268aee188b5ff2 100644 (file)
@@ -532,7 +532,7 @@ function parse_counters(reply, scheduled_call) {
                                }
        
                                if (ctr > 0) {                                  
-                                       feedctr.className = "catCtrHasUnread";
+                                       feedctr.className = "feedCtrHasUnread";
                                        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 = "catCtrNoUnread";
+                                       feedctr.className = "feedCtrNoUnread";
                                        feedr.className = feedr.className.replace("Unread", "");
                                }                       
                        }
index b6212cd1513defcf5bf9c9813f172b3f60332258..31b7f758f9fd72320b5f13fb13d95031aadeb3ed 100644 (file)
                print "<span $rtl_tag id=\"FEEDN-$feed_id\">$feed</span>";
 
                if ($unread != 0) {
-                       $fctr_class = "";
+                       $fctr_class = "class=\"feedCtrHasUnread\"";
                } else {
-                       $fctr_class = "class=\"invisible\"";
+                       $fctr_class = "class=\"feedCtrNoUnread\"";
                }
 
                print " <span $rtl_tag $fctr_class id=\"FEEDCTR-$feed_id\">
 
 #                                      }
                                        
-                                       print "<td class=\"hlUpdated\" onclick='javascript:view($id,$feed_id)'><nobr>$updated_fmt&nbsp;</nobr></td>";
+                                       print "<td class=\"hlUpdated\" onclick='view($id,$feed_id)'><nobr>$updated_fmt&nbsp;</nobr></td>";
 
                                        print "<td class='hlMarkedPic'>$score_pic</td>";
 
                                        if ($line["feed_title"] && !get_pref($link, 'VFEED_GROUP_BY_FEED')) {
-                                               print "<td class=\"hlFeedIcon\">$feed_icon_img</td>";
+                                               print "<td onclick=\"viewfeed($feed_id)\" class=\"hlFeedIcon\">$feed_icon_img</td>";
                                        }
 
                                        print "</tr>";
index ae8240e88d373b7b3775187d0a2b8cff7610a424..d461ee227e2a18112d3c7277c5d3a6547d339c9d 100644 (file)
@@ -875,6 +875,7 @@ table.headlinesList {
 table.headlinesList td.hlFeedIcon {
        width : 25px;
        text-align : center;
+       cursor : pointer;
 }
 
 
@@ -1699,12 +1700,12 @@ a.feedUpdErrLink {
        margin-bottom : 0.5em;
 }
 
-.catCtrHasUnread {
+.catCtrHasUnread, .feedCtrHasUnread {
        font-weight : bold;
        color : #707070;
 }
 
-.catCtrNoUnread {
+.catCtrNoUnread, .feedCtrNoUnread {
        display : none;
 }