summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-28 07:12:45 +0100
committerAndrew Dolgov <[email protected]>2006-03-28 07:12:45 +0100
commitfb1fb4ab1facad22f9f9bfb868efa35500d90abf (patch)
tree41afdecde81014df5bee198ad9a35c51993d24de /functions.js
parent3b0f23de404fb1616a80db06b8641d2f44a80291 (diff)
show last update time/status in feed tooltip (#55)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index 4ae578edd..9858608ca 100644
--- a/functions.js
+++ b/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) {