mark active category in headlines

This commit is contained in:
Andrew Dolgov 2008-06-05 09:44:33 +01:00
parent 9bbbc82c75
commit 5ee9816cba
2 changed files with 19 additions and 0 deletions

View 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;

View 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");