--- jquery/jquery-log.js 2006/08/18 17:13:13 40 +++ jquery/jquery-log.js 2006/08/18 19:13:01 44 @@ -17,13 +17,13 @@ return m; }, - insert: function(class, m) { + insert: function(what, m) { if (! _jql) this.create(); - _jql.count[ class ]++; + _jql.count[ what ]++; - var html = '
'; $('#jql-log').append( html ); //$('#jql-log').prepend( html ); @@ -34,6 +34,14 @@ ''+_jql.count.debug+' ' + ''+_jql.count.error+'' ); + + this.scroll(); + }, + + scroll: function() { + // poor man's scroll to bottom + var e = document.getElementById('jql-log'); + e.scrollTop = e.scrollHeight - e.clientHeight; }, /* public functions */ @@ -81,6 +89,7 @@ $('#jql').toggle(); $('#jql-show').toggle(); } + this.scroll(); return false; },