From: Andrew Dolgov Date: Mon, 14 May 2007 03:26:39 +0000 (+0100) Subject: getRelativeFeedId iterates over hidden categories correctly (2) X-Git-Tag: schema_freeze_for_1.2.11~65 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=144f32d94100151ed1c0d4e22422a04d8e6068bc;p=tt-rss.git getRelativeFeedId iterates over hidden categories correctly (2) --- diff --git a/functions.js b/functions.js index 876837a8..1f031f14 100644 --- a/functions.js +++ b/functions.js @@ -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;