summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-04 18:29:37 +0100
committerAndrew Dolgov <[email protected]>2006-03-04 18:29:37 +0100
commite8ef3b971566ad5d99fa04ce9ee058542bc8d33d (patch)
treeb1e1c9dd202e8ac2e014884244c520dcdeef6ae7 /functions.js
parentd0bb308e16e930ff66249da031d25ffcf7710773 (diff)
auto refresh active feed when new messages are detected
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.js b/functions.js
index ac9b55bf3..db8f695ff 100644
--- a/functions.js
+++ b/functions.js
@@ -358,7 +358,7 @@ if (!xmlhttp_rpc && typeof XMLHttpRequest!='undefined') {
xmlhttp_rpc = new XMLHttpRequest();
}
-function parse_counters(reply, f_document, title_obj) {
+function parse_counters(reply, f_document, title_obj, scheduled_call) {
try {
for (var l = 0; l < reply.childNodes.length; l++) {
if (!reply.childNodes[l] ||
@@ -393,6 +393,11 @@ function parse_counters(reply, f_document, title_obj) {
var feed_img = f_document.getElementById("FIMG-" + id);
if (feedctr && feedu && feedr) {
+
+ if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
+ var hf = title_obj.parent.frames["headlines-frame"];
+ hf.location.reload(true);
+ }
feedu.innerHTML = ctr;