From 7c6eafe358687df9493c3d7833b6e88961f787b0 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 23 May 2011 16:49:21 -0700 Subject: [PATCH] more descriptive ids --- 4chan_x.js | 6 +++--- script.coffee | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 686ae8f8c..25395feba 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1973,7 +1973,7 @@ var dialog, html; threadStats.posts = 1; threadStats.images = $('.op img[md5]') ? 1 : 0; - html = "
" + threadStats.posts + " / " + threadStats.images + "
"; + html = "
" + threadStats.posts + " / " + threadStats.images + "
"; dialog = ui.dialog('stats', { bottom: '0px', left: '0px' @@ -1993,8 +1993,8 @@ $('#icount').className = 'error'; } } - $('#rcount').textContent = threadStats.posts; - return $('#icount').textContent = threadStats.images; + $('#postcount').textContent = threadStats.posts; + return $('#imagecount').textContent = threadStats.images; } }; unread = { diff --git a/script.coffee b/script.coffee index 4665f075b..5fb8513cb 100644 --- a/script.coffee +++ b/script.coffee @@ -1549,7 +1549,7 @@ threadStats = init: -> threadStats.posts = 1 threadStats.images = if $ '.op img[md5]' then 1 else 0 - html = "
#{threadStats.posts} / #{threadStats.images}
" + html = "
#{threadStats.posts} / #{threadStats.images}
" dialog = ui.dialog 'stats', bottom: '0px', left: '0px', html dialog.className = 'dialog' $.append d.body, dialog @@ -1561,8 +1561,8 @@ threadStats = threadStats.images++ if threadStats.images > 150 $('#icount').className = 'error' - $('#rcount').textContent = threadStats.posts - $('#icount').textContent = threadStats.images + $('#postcount').textContent = threadStats.posts + $('#imagecount').textContent = threadStats.images unread = init: ->