From 703b632ee95a633f33084ffe6cd5db1017791276 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Nov 2005 08:41:36 +0100 Subject: feedlist display fixes for category mode --- functions.js | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index c7f1b8a64..6aaea8d8e 100644 --- a/functions.js +++ b/functions.js @@ -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", ""); + } + } + } + } } -- cgit v1.2.3