diff options
author | Andrew Dolgov <[email protected]> | 2007-05-14 04:19:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-14 04:19:20 +0100 |
commit | 4e38b6c33545272596efc12881908996fb8c5630 (patch) | |
tree | 8118516255a3373d7b89c1b3685ef7530e9d0ed6 | |
parent | 5158ced917ce256f6c5adb9d06c69be79751e7e0 (diff) |
getRelativeFeedId iterates over hidden categories correctly
-rw-r--r-- | functions.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.js b/functions.js index cbc82a6a9..876837a8e 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-", ""); + } } } } |