From 5ee9816cba3ca5ab4dd3eb516537dae52f78db33 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 5 Jun 2008 09:44:33 +0100 Subject: [PATCH] mark active category in headlines --- tt-rss.css | 11 +++++++++++ viewfeed.js | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/tt-rss.css b/tt-rss.css index eae6fc8a6..f9de1bbc3 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -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; diff --git a/viewfeed.js b/viewfeed.js index f8cd3f0c3..758fa6ad9 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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");