mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 11:45:56 +00:00
show last update time/status in feed tooltip (#55)
This commit is contained in:
10
functions.js
10
functions.js
@@ -399,6 +399,7 @@ function parse_counters(reply, f_document, title_obj, scheduled_call) {
|
||||
var ctr = reply.childNodes[l].getAttribute("counter");
|
||||
var error = reply.childNodes[l].getAttribute("error");
|
||||
var has_img = reply.childNodes[l].getAttribute("hi");
|
||||
var updated = reply.childNodes[l].getAttribute("updated");
|
||||
|
||||
if (id == "global-unread") {
|
||||
title_obj.global_unread = ctr;
|
||||
@@ -418,6 +419,15 @@ function parse_counters(reply, f_document, title_obj, scheduled_call) {
|
||||
var feedu = f_document.getElementById("FEEDU-" + id);
|
||||
var feedr = f_document.getElementById("FEEDR-" + id);
|
||||
var feed_img = f_document.getElementById("FIMG-" + id);
|
||||
var feedlink = f_document.getElementById("FEEDL-" + id);
|
||||
|
||||
if (updated && feedlink) {
|
||||
if (error) {
|
||||
feedlink.title = "Error: " + error + " (" + updated + ")";
|
||||
} else {
|
||||
feedlink.title = "Updated: " + updated;
|
||||
}
|
||||
}
|
||||
|
||||
if (feedctr && feedu && feedr) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user