From d1a699162196e85069cda7aec127cabcb1785e52 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 7 May 2012 10:09:14 +0200 Subject: [PATCH] Use $.addClass in Thread Stats. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3bc070944..61c5203a2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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'); } } }; diff --git a/script.coffee b/script.coffee index d17f69f19..a7a853392 100644 --- a/script.coffee +++ b/script.coffee @@ -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: ->