This commit is contained in:
Nicolas Stepien 2011-05-23 16:16:06 +02:00
parent 49de3385c0
commit 3570e1f70b
2 changed files with 5 additions and 7 deletions

View File

@ -1971,14 +1971,13 @@
threadStats = {
init: function() {
var html;
html = "<div class=move>Replies: <span id=rcount>0</span> Images: <span id=icount></span></div>";
threadStats.replies = 0;
threadStats.images = $('.op img[md5]') ? 1 : 0;
html = "<div class=move>Replies: <span id=rcount>" + threadStats.replies + "</span> Images: <span id=icount>" + threadStats.images + "</span></div>";
$.append(d.body, ui.dialog('stats', {
bottom: '0px',
left: '0px'
}, html));
threadStats.replies = 0;
threadStats.images = $('.op img[md5]') ? 1 : 0;
$('#icount').textContent = threadStats.images;
return g.callbacks.push(threadStats.node);
},
node: function(root) {

View File

@ -1547,11 +1547,10 @@ reportButton =
threadStats =
init: ->
html = "<div class=move>Replies: <span id=rcount>0</span> Images: <span id=icount></span></div>"
$.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html)
threadStats.replies = 0
threadStats.images = if $ '.op img[md5]' then 1 else 0
$('#icount').textContent = threadStats.images
html = "<div class=move>Replies: <span id=rcount>#{threadStats.replies}</span> Images: <span id=icount>#{threadStats.images}</span></div>"
$.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html)
g.callbacks.push threadStats.node
node: (root) ->
return if root.className