From: Andrew Dolgov Date: Thu, 5 Jun 2008 08:44:33 +0000 (+0100) Subject: mark active category in headlines X-Git-Tag: 1.2.24~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5ee9816cba3ca5ab4dd3eb516537dae52f78db33;p=tt-rss.git mark active category in headlines --- diff --git a/tt-rss.css b/tt-rss.css index eae6fc8a..f9de1bbc 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 f8cd3f0c..758fa6ad 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");