From cec02d0f92d4951088301684db4ecdc41f731581 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 23 May 2011 04:00:24 +0200 Subject: [PATCH] Fix deleted OP image count --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 2116127cd..0beb352e0 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1977,7 +1977,7 @@ left: '0px' }, html)); threadStats.replies = 0; - threadStats.images = 1; + threadStats.images = $('.op img[md5]') ? 1 : 0; return g.callbacks.push(threadStats.node); }, node: function(root) { diff --git a/script.coffee b/script.coffee index 92c45af14..54f05a565 100644 --- a/script.coffee +++ b/script.coffee @@ -1550,7 +1550,7 @@ threadStats = html = "
Replies: 0 Images: 1
" $.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html) threadStats.replies = 0 - threadStats.images = 1 + threadStats.images = if $ '.op img[md5]' then 1 else 0 g.callbacks.push threadStats.node node: (root) -> return if root.className