From: Andrew Dolgov Date: Mon, 14 May 2007 03:19:20 +0000 (+0100) Subject: getRelativeFeedId iterates over hidden categories correctly X-Git-Tag: schema_freeze_for_1.2.11~66 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4e38b6c33545272596efc12881908996fb8c5630;p=tt-rss.git getRelativeFeedId iterates over hidden categories correctly --- diff --git a/functions.js b/functions.js index cbc82a6a..876837a8 100644 --- a/functions.js +++ b/functions.js @@ -1158,7 +1158,7 @@ function getRelativeFeedId(list, id, direction, unread_only) { if (getInitParam("hide_read_feeds") == 1) { if (child.className != "feed") { - alert(child.className); +// alert(child.className); return child.id.replace('FEEDR-', ''); } } else { @@ -1207,7 +1207,10 @@ function getRelativeFeedId(list, id, direction, unread_only) { if (e) { if (!unread_only || (unread_only && e.className != "feed" && e.className.match("feed"))) { - return e.id.replace("FEEDR-", ""); + if (e.parentNode.parentNode && e.parentNode.parentNode.className + != "invisible") { + return e.id.replace("FEEDR-", ""); + } } } } @@ -1244,7 +1247,10 @@ function getRelativeFeedId(list, id, direction, unread_only) { if (e) { if (!unread_only || (unread_only && e.className != "feed" && e.className.match("feed"))) { - return e.id.replace("FEEDR-", ""); + if (e.parentNode.parentNode && e.parentNode.parentNode.className + != "invisible") { + return e.id.replace("FEEDR-", ""); + } } } }