diff options
author | Andrew Dolgov <[email protected]> | 2008-06-05 09:44:33 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-06-05 09:44:33 +0100 |
commit | 5ee9816cba3ca5ab4dd3eb516537dae52f78db33 (patch) | |
tree | 3939cde28108dbfc1aa8c71f8e235dc2782bdb2a | |
parent | 9bbbc82c754859753115e7ae879c09b3ed647cad (diff) |
mark active category in headlines
-rw-r--r-- | tt-rss.css | 11 | ||||
-rw-r--r-- | viewfeed.js | 8 |
2 files changed, 19 insertions, 0 deletions
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"); |