]> git.wh0rd.org Git - tt-rss.git/commitdiff
getRelativeFeedId iterates over hidden categories correctly (2)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 03:26:39 +0000 (04:26 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 May 2007 03:26:39 +0000 (04:26 +0100)
functions.js

index 876837a8ea56c89d9455a8b8a7084ac925f21f69..1f031f149238b6b18fbde7706eb34993ddcda97a 100644 (file)
@@ -1149,7 +1149,7 @@ function getRelativeFeedId(list, id, direction, unread_only) {
                if (direction == "prev") {
                        for (i = list.childNodes.length-1; i >= 0; i--) {
                                var child = list.childNodes[i];                         
-                               if (child.id == "feedCatHolder") {
+                               if (child.id == "feedCatHolder" && child.className != "invisible") {
                                        if (child.firstChild) {
                                                var cr = getRelativeFeedId(child.firstChild, id, direction);
                                                if (cr) return cr;