diff options
author | Andrew Dolgov <[email protected]> | 2005-11-29 14:09:47 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-29 14:09:47 +0100 |
commit | 806a3d146d145d378e4dc330d4fe1085a5eb8079 (patch) | |
tree | 8b9cbeb98fe04474d76abf4a53b8f3d648882316 /functions.js | |
parent | ed027ba5cf12b0938268a363c960ade8b197f1d3 (diff) |
show number of unread articles in title
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.js b/functions.js index 694ade06a..17cab9d76 100644 --- a/functions.js +++ b/functions.js @@ -359,6 +359,12 @@ function all_counters_callback() { for (var l = 0; l < reply.childNodes.length; l++) { var id = reply.childNodes[l].getAttribute("id"); var ctr = reply.childNodes[l].getAttribute("counter"); + + if (id == "global-unread") { + parent.global_unread = ctr; + parent.updateTitle(); + continue; + } var feedctr = f_document.getElementById("FEEDCTR-" + id); var feedu = f_document.getElementById("FEEDU-" + id); |