summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-07-16 14:05:29 +0100
committerAndrew Dolgov <[email protected]>2007-07-16 14:05:29 +0100
commit8e00ae9b58cceccaf10b7bf8600131b8d6e671a4 (patch)
tree9968c81d03458b99bf66102a1cba82415e5ad875 /tt-rss.js
parent2544f36b6ffd1f14dc5007ca2710cfd13c4dcccb (diff)
check update daemon timestamp
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 96418db9e..10f1a7ef3 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -604,9 +604,19 @@ function parse_runtime_info(elem) {
}
}
+ var error_flag;
+
if (k == "daemon_is_running" && v != 1) {
- notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>");
- } else {
+ notify_error("<span onclick=\"javascript:explainError(1)\">Update daemon is not running.</span>", true);
+ error_flag = true;
+ }
+
+ if (k == "daemon_stamp_ok" && v != 1) {
+ notify_error("<span onclick=\"javascript:explainError(3)\">Update daemon is not updating feeds.</span>", true);
+ error_flag = true;
+ }
+
+ if (!error_flag) {
notify('');
}