]> git.wh0rd.org - tt-rss.git/commitdiff
reverse direction of debug box
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 2 Mar 2006 08:47:05 +0000 (09:47 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 2 Mar 2006 08:47:05 +0000 (09:47 +0100)
tt-rss.js

index ff707320fd94a2b4a8d03ff3ff5ae413cf6f0e89..a600c9c332c351103f26a228922a19065f259f81 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -691,12 +691,12 @@ function toggleDispRead() {
 function debug(msg) {
        var c = document.getElementById('debug_output');
        if (c && c.style.display == "block") {
-               while (c.firstChild != 'undefined' && c.childNodes.length > 15) {
-                       c.removeChild(c.firstChild);
+               while (c.lastChild != 'undefined' && c.childNodes.length > 20) {
+                       c.removeChild(c.lastChild);
                }
        
                var d = new Date();
                var ts = d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
-               c.innerHTML = c.innerHTML + "<li>[" + ts + "] " + msg + "</li>";
+               c.innerHTML = "<li>[" + ts + "] " + msg + "</li>" + c.innerHTML;
        }
 }