Use $.addClass in Thread Stats.
This commit is contained in:
parent
a5912734f3
commit
d1a6991621
@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -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: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user