1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 04:55:55 +00:00

feedlist display fixes for category mode

This commit is contained in:
Andrew Dolgov
2005-11-23 08:41:36 +01:00
parent 54d3ba50af
commit 703b632ee9
2 changed files with 23 additions and 9 deletions

View File

@@ -126,11 +126,25 @@ function hotkey_handler(e) {
function cleanSelectedList(element) {
var content = document.getElementById(element);
for (i = 0; i < content.childNodes.length; i++) {
content.childNodes[i].className =
content.childNodes[i].className.replace("Selected", "");
}
if (!document.getElementById("feedCatHolder")) {
for (i = 0; i < content.childNodes.length; i++) {
var child = content.childNodes[i];
child.className = child.className.replace("Selected", "");
}
} else {
for (i = 0; i < content.childNodes.length; i++) {
var child = content.childNodes[i];
if (child.id == "feedCatHolder") {
var fcat = child.firstChild;
for (j = 0; j < fcat.childNodes.length; j++) {
var feed = fcat.childNodes[j];
feed.className = feed.className.replace("Selected", "");
}
}
}
}
}