summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-20 07:37:33 +0100
committerAndrew Dolgov <[email protected]>2008-05-20 07:37:33 +0100
commitbdb7369bbb55b80641c516e380ecd69237f6cf8f (patch)
tree146b1b1985ec22e473f6fef0062e1656b463476a /functions.js
parent04fedbf587995bd029d345994f1c35130b8963b1 (diff)
improve output when EXTENDED_FEEDLIST is set, font size tweaks
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/functions.js b/functions.js
index c66993c2a..99d267f91 100644
--- a/functions.js
+++ b/functions.js
@@ -475,7 +475,8 @@ function parse_counters(reply, scheduled_call) {
var has_img = elems[l].getAttribute("hi");
var updated = elems[l].getAttribute("updated");
var title = elems[l].getAttribute("title");
-
+ var xmsg = elems[l].getAttribute("xmsg");
+
if (id == "global-unread") {
global_unread = ctr;
updateTitle();
@@ -515,11 +516,21 @@ function parse_counters(reply, scheduled_call) {
}
}
- if (updated && feedupd) {
+ if (feedupd) {
+ if (!updated) updated = "";
+
if (error) {
- feedupd.innerHTML = updated + " (Error)";
+ if (xmsg) {
+ feedupd.innerHTML = updated + " " + xmsg + " (Error)";
+ } else {
+ feedupd.innerHTML = updated + " (Error)";
+ }
} else {
- feedupd.innerHTML = updated;
+ if (xmsg) {
+ feedupd.innerHTML = updated + " " + xmsg;
+ } else {
+ feedupd.innerHTML = updated;
+ }
}
}