]> git.wh0rd.org Git - tt-rss.git/commitdiff
mark active category in headlines
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 5 Jun 2008 08:44:33 +0000 (09:44 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 5 Jun 2008 08:44:33 +0000 (09:44 +0100)
tt-rss.css
viewfeed.js

index eae6fc8a66c54f196f18ebf44b0604b106d92b72..f9de1bbc315e35dfec111a68d581a5587f66dbd1 100644 (file)
@@ -95,6 +95,17 @@ ul.feedList li.feedCat a:hover {
        color : #4684ff;
 }
 
+ul.feedList li.feedCatSelected {
+       margin : 0px;
+       padding : 3px 0px 3px 0px;
+       color : #4684ff;
+       font-size : 12px;
+}
+
+ul.feedList li.feedCatSelected a {
+       color : #4684ff;
+}
+
 ul.feedCatList {
        list-style-type : none;
        margin : 0px 0px 0px 15px;
index f8cd3f0c333e3b20aad6ff2f06f71d15352ef059..758fa6ad94ff61bd3822e600bf8b1809b62582c5 100644 (file)
@@ -58,6 +58,9 @@ function clean_feed_selections() {
                        if (feeds[i].id && feeds[i].id.match("FEEDR-")) {
                                feeds[i].className = feeds[i].className.replace("Selected", "");
                        }                       
+                       if (feeds[i].id && feeds[i].id.match("FCAT-")) {
+                               feeds[i].className = feeds[i].className.replace("Selected", "");
+                       }
                }
        } catch (e) {
                exception_error("clean_feed_selections", e);
@@ -84,6 +87,11 @@ function headlines_callback2(transport, active_feed_id, is_cat, feed_cur_page) {
                        if (feedr && !feedr.className.match("Selected")) {      
                                feedr.className = feedr.className + "Selected";
                        } 
+               } else {
+                       var feedr = document.getElementById("FCAT-" + active_feed_id);
+                       if (feedr && !feedr.className.match("Selected")) {      
+                               feedr.className = feedr.className + "Selected";
+                       } 
                }
        
                var f = document.getElementById("headlines-frame");