From f77a6e8c7fb794fba1cda3287538eca13134ef06 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 18 Jul 2011 16:08:25 -0700 Subject: [PATCH] countID -> countEl --- 4chan_x.user.js | 10 +++++----- script.coffee | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 08c0b61d7..0d5f7b913 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2275,8 +2275,8 @@ left: '0px' }, html); dialog.className = 'dialog'; - threadStats.postcountID = $('#postcount', dialog); - threadStats.imagecountID = $('#imagecount', dialog); + threadStats.postcountEl = $('#postcount', dialog); + threadStats.imagecountEl = $('#imagecount', dialog); $.append(d.body, dialog); return g.callbacks.push(threadStats.node); }, @@ -2284,11 +2284,11 @@ if (root.className) { return; } - threadStats.postcountID.textContent = ++threadStats.posts; + threadStats.postcountEl.textContent = ++threadStats.posts; if ($('img[md5]', root)) { - threadStats.imagecountID.textContent = ++threadStats.images; + threadStats.imagecountEl.textContent = ++threadStats.images; if (threadStats.images > 150) { - return threadStats.imagecountID.className = 'error'; + return threadStats.imagecountEl.className = 'error'; } } } diff --git a/script.coffee b/script.coffee index 6ab1d836b..85bcab54b 100644 --- a/script.coffee +++ b/script.coffee @@ -1746,17 +1746,17 @@ threadStats = html = "
#{threadStats.posts} / #{threadStats.images}
" dialog = ui.dialog 'stats', bottom: '0px', left: '0px', html dialog.className = 'dialog' - threadStats.postcountID = $ '#postcount', dialog - threadStats.imagecountID = $ '#imagecount', dialog + threadStats.postcountEl = $ '#postcount', dialog + threadStats.imagecountEl = $ '#imagecount', dialog $.append d.body, dialog g.callbacks.push threadStats.node node: (root) -> return if root.className - threadStats.postcountID.textContent = ++threadStats.posts + threadStats.postcountEl.textContent = ++threadStats.posts if $ 'img[md5]', root - threadStats.imagecountID.textContent = ++threadStats.images + threadStats.imagecountEl.textContent = ++threadStats.images if threadStats.images > 150 - threadStats.imagecountID.className = 'error' + threadStats.imagecountEl.className = 'error' unread = init: ->