fix count classname

This commit is contained in:
James Campos 2011-04-17 08:26:10 -07:00
parent 416b0df4b6
commit ecf6f0b7db
2 changed files with 6 additions and 2 deletions

View File

@ -1426,7 +1426,9 @@
if ($.config('Verbose')) {
timer.textContent = '-' + $.config('Interval');
count.textContent = '+' + arr.length;
if (arr.length > 0) {
if (arr.length === 0) {
count.className = '';
} else {
count.className = 'new';
}
}

View File

@ -1124,7 +1124,9 @@ updater =
if $.config 'Verbose'
timer.textContent = '-' + $.config 'Interval'
count.textContent = '+' + arr.length
if arr.length > 0
if arr.length is 0
count.className = ''
else
count.className = 'new'
#XXX add replies in correct order so /b/acklinks resolve