1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 08:11:29 +00:00

add new version indicator on main chrome

This commit is contained in:
Andrew Dolgov
2007-01-27 12:32:59 +01:00
parent ef16ae3782
commit d9fa39f1d4
6 changed files with 55 additions and 9 deletions

View File

@@ -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);
}