From: Andrew Dolgov Date: Thu, 2 Mar 2006 08:47:05 +0000 (+0100) Subject: reverse direction of debug box X-Git-Tag: schema_freeze_for_1.1.4~27 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9f3a7455689982f1c83c117f7f25396a8af687af;p=tt-rss.git reverse direction of debug box --- diff --git a/tt-rss.js b/tt-rss.js index ff707320..a600c9c3 100644 --- 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 + "
  • [" + ts + "] " + msg + "
  • "; + c.innerHTML = "
  • [" + ts + "] " + msg + "
  • " + c.innerHTML; } }