fix updater notifications

This commit is contained in:
James Campos 2011-01-22 15:16:18 -08:00
parent f31cbf508d
commit b0068b9792
2 changed files with 2 additions and 4 deletions

View File

@ -837,7 +837,7 @@ updateCallback = ->
if g.verbose
l = arr.length
count.textContent = "+#{l}"
if l > 0 then count.className = 'new'
count.className = if l > 0 then 'new' else ''
#insert replies in order, so backlinks resolve
while reply = arr.pop()

View File

@ -1156,9 +1156,7 @@
if (g.verbose) {
l = arr.length;
count.textContent = "+" + l;
if (l > 0) {
count.className = 'new';
}
count.className = l > 0 ? 'new' : '';
}
while (reply = arr.pop()) {
table = x('ancestor::table', reply);