summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-05-24 04:22:48 +0100
committerAndrew Dolgov <[email protected]>2006-05-24 04:22:48 +0100
commit1cb7492dc4749484dbe7b5f593e64bdb89243cfe (patch)
tree20d04c957c21d03cd4d86ff5a41c1286e6d8dc6f
parent64a2875dcc6cb847ffdd43196bf27b5019e12419 (diff)
call parse_runtime_info from all_counters_callback
-rw-r--r--functions.js8
-rw-r--r--tt-rss.js4
2 files changed, 12 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index f7e298888..59684b023 100644
--- a/functions.js
+++ b/functions.js
@@ -568,11 +568,19 @@ function all_counters_callback() {
return;
}
+ debug("in all_counters_callback");
+
var reply = xmlhttp_rpc.responseXML.firstChild;
var counters = reply.firstChild;
parse_counters(counters);
+
+ var runtime = counters.nextSibling;
+
+ if (runtime) {
+ getMainContext().parse_runtime_info(runtime);
+ }
} catch (e) {
exception_error("all_counters_callback", e);
diff --git a/tt-rss.js b/tt-rss.js
index 9e6d70c73..bbe91ee03 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -522,10 +522,14 @@ function toggleDispRead() {
function parse_runtime_info(elem) {
var param = elem.firstChild;
+ debug("parse_runtime_info");
+
while (param) {
var k = param.getAttribute("key");
var v = param.getAttribute("value");
+ debug("RI: " + k + " => " + v);
+
var w = document.getElementById("noDaemonWarning");
if (w) {