summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-09-29 08:23:41 +0100
committerAndrew Dolgov <[email protected]>2006-09-29 08:23:41 +0100
commitd05514a49a7490cb64e3ebbcfc12bddab63eb414 (patch)
tree7ad5f597dfced1b686f103c7dc1a258dfd74e917 /functions.js
parent106689b065e5cbec64d0dc1a6ac446fb96ca3ad9 (diff)
fix id handling in getRelativeFeedId; allow on-catchup-show-next wrapping (closes #108)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/functions.js b/functions.js
index 491d43523..ec24fc506 100644
--- a/functions.js
+++ b/functions.js
@@ -84,12 +84,14 @@ function delay(gap) {
var notify_hide_timerid = false;
var notify_last_doc = false;
-var notify_effect = false;
+var notify_effect = false;
function hide_notify() {
if (notify_last_doc) {
var n = notify_last_doc.getElementById("notify");
- if (browser_has_opacity()) {
+ n.style.display = "none";
+
+/* if (browser_has_opacity()) {
if (notify_opacity >= 0) {
notify_opacity = notify_opacity - 0.1;
n.style.opacity = notify_opacity;
@@ -100,9 +102,9 @@ function hide_notify() {
}
} else {
n.style.display = "none";
- }
+ } */
}
-}
+}
function notify_real(msg, doc, no_hide, is_err) {
@@ -976,7 +978,7 @@ function getRelativeFeedId(list, id, direction, unread_only) {
var child = list.childNodes[i];
if (child.id && child.id == "feedCatHolder") {
if (child.lastChild) {
- var cr = getRelativeFeedId(child.firstChild, id, direction);
+ var cr = getRelativeFeedId(child.firstChild, id, direction, unread_only);
if (cr) return cr;
}
} else if (child.id && child.id.match("FEEDR-")) {
@@ -1010,7 +1012,7 @@ function getRelativeFeedId(list, id, direction, unread_only) {
}
} else {
- var feed = list.ownerDocument.getElementById("FEEDR-" + getActiveFeedId());
+ var feed = list.ownerDocument.getElementById("FEEDR-" + id);
if (getInitParam("hide_read_feeds") == 1) {
unread_only = true;
@@ -1046,7 +1048,8 @@ function getRelativeFeedId(list, id, direction, unread_only) {
}
if (e) {
- if (!unread_only || (unread_only && e.className != "feed" &&
+ if (!unread_only || (unread_only && e.className != "feed" &&
+ e.className != "label" && e.className != "virt" &&
e.className != "error")) {
return e.id.replace("FEEDR-", "");
}