1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 15:45:55 +00:00

update title of active feed in feedlist on the fly

This commit is contained in:
Andrew Dolgov
2007-08-25 08:38:18 +01:00
parent c2f8aac431
commit 4ffa126ec3
3 changed files with 17 additions and 6 deletions

View File

@@ -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) {