summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-23 10:08:16 +0100
committerAndrew Dolgov <[email protected]>2006-05-23 10:08:16 +0100
commit71ad883b287330de0ce2fa67b63141c56fad8930 (patch)
tree3f54716a8e42f047bfb843f0f14dbd0d07cb9070 /tt-rss.js
parentf54f515f440f69de6479fef14cd2aae004aff551 (diff)
toggle no daemon warning @ runtime on refetch
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 7157d3292..0b00737af 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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;
+ }
+}