diff options
author | Andrew Dolgov <[email protected]> | 2006-03-02 09:47:05 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-03-02 09:47:05 +0100 |
commit | 9f3a7455689982f1c83c117f7f25396a8af687af (patch) | |
tree | a31c11e45d6681359aab2b1049cc78e3d4ace2ce | |
parent | c5466b7f57df3f297cf5d5369133a402d081a758 (diff) |
reverse direction of debug box
-rw-r--r-- | tt-rss.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } } |