From: Andrew Dolgov Date: Wed, 24 May 2006 03:22:48 +0000 (+0100) Subject: call parse_runtime_info from all_counters_callback X-Git-Tag: 1.2.0~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1cb7492dc4749484dbe7b5f593e64bdb89243cfe;p=tt-rss.git call parse_runtime_info from all_counters_callback --- 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) {