From 1cb7492dc4749484dbe7b5f593e64bdb89243cfe Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 May 2006 04:22:48 +0100 Subject: [PATCH] call parse_runtime_info from all_counters_callback --- functions.js | 8 ++++++++ tt-rss.js | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/functions.js b/functions.js index f7e29888..59684b02 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 9e6d70c7..bbe91ee0 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) { -- 2.39.5