mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 05:46:00 +00:00
call parse_runtime_info from all_counters_callback
This commit is contained in:
@@ -568,12 +568,20 @@ function all_counters_callback() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug("in all_counters_callback");
|
||||||
|
|
||||||
var reply = xmlhttp_rpc.responseXML.firstChild;
|
var reply = xmlhttp_rpc.responseXML.firstChild;
|
||||||
|
|
||||||
var counters = reply.firstChild;
|
var counters = reply.firstChild;
|
||||||
|
|
||||||
parse_counters(counters);
|
parse_counters(counters);
|
||||||
|
|
||||||
|
var runtime = counters.nextSibling;
|
||||||
|
|
||||||
|
if (runtime) {
|
||||||
|
getMainContext().parse_runtime_info(runtime);
|
||||||
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("all_counters_callback", e);
|
exception_error("all_counters_callback", e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -522,10 +522,14 @@ function toggleDispRead() {
|
|||||||
function parse_runtime_info(elem) {
|
function parse_runtime_info(elem) {
|
||||||
var param = elem.firstChild;
|
var param = elem.firstChild;
|
||||||
|
|
||||||
|
debug("parse_runtime_info");
|
||||||
|
|
||||||
while (param) {
|
while (param) {
|
||||||
var k = param.getAttribute("key");
|
var k = param.getAttribute("key");
|
||||||
var v = param.getAttribute("value");
|
var v = param.getAttribute("value");
|
||||||
|
|
||||||
|
debug("RI: " + k + " => " + v);
|
||||||
|
|
||||||
var w = document.getElementById("noDaemonWarning");
|
var w = document.getElementById("noDaemonWarning");
|
||||||
|
|
||||||
if (w) {
|
if (w) {
|
||||||
|
|||||||
Reference in New Issue
Block a user