diff options
author | Andrew Dolgov <[email protected]> | 2007-07-16 14:05:29 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-07-16 14:05:29 +0100 |
commit | 8e00ae9b58cceccaf10b7bf8600131b8d6e671a4 (patch) | |
tree | 9968c81d03458b99bf66102a1cba82415e5ad875 /tt-rss.js | |
parent | 2544f36b6ffd1f14dc5007ca2710cfd13c4dcccb (diff) |
check update daemon timestamp
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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(''); } |