Use $.addClass in Thread Stats.
This commit is contained in:
parent
a5912734f3
commit
d1a6991621
@ -2578,7 +2578,7 @@
|
|||||||
},
|
},
|
||||||
retry: function() {
|
retry: function() {
|
||||||
this.count.textContent = 'Retry';
|
this.count.textContent = 'Retry';
|
||||||
this.count.className = '';
|
this.count.className = null;
|
||||||
return this.update();
|
return this.update();
|
||||||
},
|
},
|
||||||
update: function() {
|
update: function() {
|
||||||
@ -3463,7 +3463,7 @@
|
|||||||
imgcount = $.id('imagecount');
|
imgcount = $.id('imagecount');
|
||||||
imgcount.textContent = ++ThreadStats.images;
|
imgcount.textContent = ++ThreadStats.images;
|
||||||
if (ThreadStats.images > ThreadStats.imgLimit) {
|
if (ThreadStats.images > ThreadStats.imgLimit) {
|
||||||
return imgcount.className = 'warning';
|
return $.addClass(imgcount, 'warning');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2048,7 +2048,7 @@ Updater =
|
|||||||
|
|
||||||
retry: ->
|
retry: ->
|
||||||
@count.textContent = 'Retry'
|
@count.textContent = 'Retry'
|
||||||
@count.className = ''
|
@count.className = null
|
||||||
@update()
|
@update()
|
||||||
|
|
||||||
update: ->
|
update: ->
|
||||||
@ -2663,7 +2663,7 @@ ThreadStats =
|
|||||||
imgcount = $.id 'imagecount'
|
imgcount = $.id 'imagecount'
|
||||||
imgcount.textContent = ++ThreadStats.images
|
imgcount.textContent = ++ThreadStats.images
|
||||||
if ThreadStats.images > ThreadStats.imgLimit
|
if ThreadStats.images > ThreadStats.imgLimit
|
||||||
imgcount.className = 'warning'
|
$.addClass imgcount, 'warning'
|
||||||
|
|
||||||
Unread =
|
Unread =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user