summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-01-27 12:32:59 +0100
committerAndrew Dolgov <[email protected]>2007-01-27 12:32:59 +0100
commitd9fa39f1d444fbd5a909aabe19dfc50aa8601131 (patch)
treec9e84bbd32cee9f3cdae05b210f41b451e763ddd /tt-rss.js
parentef16ae378238fa868d282da5c4f77d8556534af4 (diff)
add new version indicator on main chrome
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 0e0886b85..34dab4d3a 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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);
}