|
|
@ -775,9 +775,11 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
|
|
|
|
for (i = 0; i < node.childNodes.length; i++) {
|
|
|
|
for (i = 0; i < node.childNodes.length; i++) {
|
|
|
|
if (node.childNodes[i].nodeName != "LI") { continue; }
|
|
|
|
if (node.childNodes[i].nodeName != "LI") { continue; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (node.childNodes[i].style != undefined) {
|
|
|
|
|
|
|
|
|
|
|
|
var has_unread = (node.childNodes[i].className != "feed");
|
|
|
|
var has_unread = (node.childNodes[i].className != "feed");
|
|
|
|
|
|
|
|
|
|
|
|
// debug(node.childNodes[i].id + " --> " + has_unread);
|
|
|
|
// debug(node.childNodes[i].id + " --> " + has_unread);
|
|
|
|
|
|
|
|
|
|
|
|
if (hide && !has_unread) {
|
|
|
|
if (hide && !has_unread) {
|
|
|
|
node.childNodes[i].style.display = "none";
|
|
|
|
node.childNodes[i].style.display = "none";
|
|
|
@ -790,11 +792,16 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) {
|
|
|
|
if (has_unread) {
|
|
|
|
if (has_unread) {
|
|
|
|
cat_unread++;
|
|
|
|
cat_unread++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (cat_unread == 0) {
|
|
|
|
if (cat_unread == 0) {
|
|
|
|
|
|
|
|
if (cat_node.style == undefined) {
|
|
|
|
|
|
|
|
debug("ERROR: supplied cat_node " + cat_node +
|
|
|
|
|
|
|
|
" has no styles. WTF?");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (hide) {
|
|
|
|
if (hide) {
|
|
|
|
cat_node.style.display = "none";
|
|
|
|
cat_node.style.display = "none";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|