diff options
author | Andrew Dolgov <[email protected]> | 2007-01-27 12:32:59 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-01-27 12:32:59 +0100 |
commit | d9fa39f1d444fbd5a909aabe19dfc50aa8601131 (patch) | |
tree | c9e84bbd32cee9f3cdae05b210f41b451e763ddd /tt-rss.js | |
parent | ef16ae378238fa868d282da5c4f77d8556534af4 (diff) |
add new version indicator on main chrome
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -539,6 +539,17 @@ function parse_runtime_info(elem) { debug("RI: " + k + " => " + v); + if (k == "new_version_available") { + var icon = document.getElementById("newVersionIcon"); + if (icon) { + if (v == "1") { + icon.style.display = "inline"; + } else { + icon.style.display = "none"; + } + } + } + if (k == "daemon_is_running" && v != 1) { notify("<span onclick=\"javascript:explainError(1)\">Warning: Update daemon is not runing.</span>", true, true); } |