]> git.wh0rd.org Git - tt-rss.git/commitdiff
hideOrShowFeedsCategory: additional debugging
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Nov 2007 03:45:58 +0000 (04:45 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Nov 2007 03:45:58 +0000 (04:45 +0100)
functions.js

index e387570248db454ade099cf81a3818d56c7ac42a..74c4e9a454e0a8de984dcddac873d6f304bf5dbc 100644 (file)
@@ -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 +