summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-25 08:38:18 +0100
committerAndrew Dolgov <[email protected]>2007-08-25 08:38:18 +0100
commit4ffa126ec3a9cbe06c7bec710f04da47476ed8ad (patch)
treebe7c8efe0725265069c74d4f840aa36e83cff15e /functions.js
parentc2f8aac43133e8c7e2ca09891e641b9e3e98c3f8 (diff)
update title of active feed in feedlist on the fly
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 1c42df9ff..5414e2bb8 100644
--- a/functions.js
+++ b/functions.js
@@ -596,7 +596,8 @@ function parse_counters(reply, scheduled_call) {
var error = elems[l].getAttribute("error");
var has_img = elems[l].getAttribute("hi");
var updated = elems[l].getAttribute("updated");
-
+ var title = elems[l].getAttribute("title");
+
if (id == "global-unread") {
global_unread = ctr;
updateTitle();
@@ -650,6 +651,10 @@ function parse_counters(reply, scheduled_call) {
}
}
+ if (feedlink && title) {
+ feedlink.innerHTML = title;
+ }
+
if (feedctr && feedu && feedr) {
if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {