]> git.wh0rd.org - tt-rss.git/commitdiff
call parse_runtime_info from all_counters_callback
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 May 2006 03:22:48 +0000 (04:22 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 24 May 2006 03:22:48 +0000 (04:22 +0100)
functions.js
tt-rss.js

index f7e29888847cf84292fce92404c86b78b8fe2156..59684b0231ab5360f88e39a85eb222174f12d61e 100644 (file)
@@ -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);
index 9e6d70c73bc629762883b4868aada98e20007e39..bbe91ee03bc6996d665932bf5b6fbcb2650eaa8b 100644 (file)
--- 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) {