diff options
author | Andrew Dolgov <[email protected]> | 2007-11-21 04:45:58 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-11-21 04:45:58 +0100 |
commit | 2c2b019b1b182a57f7f8e6029ca36d97e18d0740 (patch) | |
tree | bb4771ae1fae66b0ce5f3050423e1c4222284f76 /functions.js | |
parent | 46f73352f992320ea007651a0425bf99359fdd57 (diff) |
hideOrShowFeedsCategory: additional debugging
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.js b/functions.js index e38757024..74c4e9a45 100644 --- a/functions.js +++ b/functions.js @@ -919,6 +919,8 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) { return; } + debug("cat: " + node.id); + if (node.hasChildNodes() && node.firstChild.nextSibling != false) { for (i = 0; i < node.childNodes.length; i++) { if (node.childNodes[i].nodeName != "LI") { continue; } @@ -931,7 +933,7 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) { node.childNodes[i].className != "error" && node.childNodes[i].className != "tag"); - // debug(node.childNodes[i].id + " --> " + has_unread); +// debug(node.childNodes[i].id + " --> " + has_unread); if (hide && !has_unread) { //node.childNodes[i].style.display = "none"; @@ -955,6 +957,8 @@ function hideOrShowFeedsCategory(doc, node, hide, cat_node) { } } + debug("end cat: " + node.id + " unread " + cat_unread); + if (cat_unread == 0) { if (cat_node.style == undefined) { debug("ERROR: supplied cat_node " + cat_node + |