Fix deleted OP image count

This commit is contained in:
Nicolas Stepien 2011-05-23 04:00:24 +02:00
parent 3f58572603
commit cec02d0f92
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -1550,7 +1550,7 @@ threadStats =
html = "<div class=move>Replies: <span id=rcount>0</span> Images: <span id=icount>1</span></div>"
$.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