17 |
return m; |
return m; |
18 |
}, |
}, |
19 |
|
|
20 |
insert: function(class, m) { |
insert: function(what, m) { |
21 |
if (! _jql) this.create(); |
if (! _jql) this.create(); |
22 |
|
|
23 |
_jql.count[ class ]++; |
_jql.count[ what ]++; |
24 |
|
|
25 |
var html = '<div class="jql-' + class + '"' |
var html = '<div class="jql-' + what + '"' |
26 |
if ( ! _jql.on[class] ) html += ' style="display:none"'; |
if ( ! _jql.on[what] ) html += ' style="display:none"'; |
27 |
html += '>' + m + '</div>'; |
html += '>' + m + '</div>'; |
28 |
$('#jql-log').append( html ); |
$('#jql-log').append( html ); |
29 |
//$('#jql-log').prepend( html ); |
//$('#jql-log').prepend( html ); |
34 |
'<span class="jql-debug">'+_jql.count.debug+'</span> ' + |
'<span class="jql-debug">'+_jql.count.debug+'</span> ' + |
35 |
'<span class="jql-error">'+_jql.count.error+'</span>' |
'<span class="jql-error">'+_jql.count.error+'</span>' |
36 |
); |
); |
37 |
|
|
38 |
|
this.scroll(); |
39 |
|
}, |
40 |
|
|
41 |
|
scroll: function() { |
42 |
|
// poor man's scroll to bottom |
43 |
|
var e = document.getElementById('jql-log'); |
44 |
|
e.scrollTop = e.scrollHeight - e.clientHeight; |
45 |
}, |
}, |
46 |
|
|
47 |
/* public functions */ |
/* public functions */ |
89 |
$('#jql').toggle(); |
$('#jql').toggle(); |
90 |
$('#jql-show').toggle(); |
$('#jql-show').toggle(); |
91 |
} |
} |
92 |
|
this.scroll(); |
93 |
return false; |
return false; |
94 |
}, |
}, |
95 |
|
|