Use $.addClass in Thread Stats.

This commit is contained in:
Nicolas Stepien 2012-05-07 10:09:14 +02:00
parent a5912734f3
commit d1a6991621
2 changed files with 4 additions and 4 deletions

View File

@ -2578,7 +2578,7 @@
},
retry: function() {
this.count.textContent = 'Retry';
this.count.className = '';
this.count.className = null;
return this.update();
},
update: function() {
@ -3463,7 +3463,7 @@
imgcount = $.id('imagecount');
imgcount.textContent = ++ThreadStats.images;
if (ThreadStats.images > ThreadStats.imgLimit) {
return imgcount.className = 'warning';
return $.addClass(imgcount, 'warning');
}
}
};

View File

@ -2048,7 +2048,7 @@ Updater =
retry: ->
@count.textContent = 'Retry'
@count.className = ''
@count.className = null
@update()
update: ->
@ -2663,7 +2663,7 @@ ThreadStats =
imgcount = $.id 'imagecount'
imgcount.textContent = ++ThreadStats.images
if ThreadStats.images > ThreadStats.imgLimit
imgcount.className = 'warning'
$.addClass imgcount, 'warning'
Unread =
init: ->