1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 17:45:56 +00:00

toggle no daemon warning @ runtime on refetch

This commit is contained in:
Andrew Dolgov
2006-05-23 10:08:16 +01:00
parent f54f515f44
commit 71ad883b28
4 changed files with 33 additions and 10 deletions

View File

@@ -75,6 +75,10 @@ function refetch_callback() {
parse_counters(counters, true);
var runtime_info = counters.nextSibling;
parse_runtime_info(runtime_info);
debug("refetch_callback: done");
if (!daemon_enabled) {
@@ -513,4 +517,22 @@ function toggleDispRead() {
}
}
function parse_runtime_info(elem) {
var param = elem.firstChild;
while (param) {
var k = param.getAttribute("key");
var v = param.getAttribute("value");
var w = document.getElementById("noDaemonWarning");
if (w) {
if (k == "daemon_is_running" && v != 1) {
w.style.display = "block";
} else {
w.style.display = "none";
}
}
param = param.nextSibling;
}
}