stats: s/replies/posts
if you count the op image, you might as well count the op. also (the real reason): 'posts' has less characters than 'replies'.
This commit is contained in:
parent
0782138c2e
commit
c64b7014c4
@ -1971,9 +1971,9 @@
|
||||
threadStats = {
|
||||
init: function() {
|
||||
var dialog, html;
|
||||
threadStats.replies = 0;
|
||||
threadStats.posts = 1;
|
||||
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>";
|
||||
html = "<div class=move>Posts: <span id=rcount>" + threadStats.posts + "</span> Images: <span id=icount>" + threadStats.images + "</span></div>";
|
||||
dialog = ui.dialog('stats', {
|
||||
bottom: '0px',
|
||||
left: '0px'
|
||||
@ -1986,14 +1986,14 @@
|
||||
if (root.className) {
|
||||
return;
|
||||
}
|
||||
threadStats.replies++;
|
||||
threadStats.posts++;
|
||||
if ($('img[md5]', root)) {
|
||||
threadStats.images++;
|
||||
if (threadStats.images > 150) {
|
||||
$('#icount').className = 'error';
|
||||
}
|
||||
}
|
||||
$('#rcount').textContent = threadStats.replies;
|
||||
$('#rcount').textContent = threadStats.posts;
|
||||
return $('#icount').textContent = threadStats.images;
|
||||
}
|
||||
};
|
||||
|
||||
@ -1547,21 +1547,21 @@ reportButton =
|
||||
|
||||
threadStats =
|
||||
init: ->
|
||||
threadStats.replies = 0
|
||||
threadStats.posts = 1
|
||||
threadStats.images = if $ '.op img[md5]' then 1 else 0
|
||||
html = "<div class=move>Replies: <span id=rcount>#{threadStats.replies}</span> Images: <span id=icount>#{threadStats.images}</span></div>"
|
||||
html = "<div class=move>Posts: <span id=rcount>#{threadStats.posts}</span> Images: <span id=icount>#{threadStats.images}</span></div>"
|
||||
dialog = ui.dialog 'stats', bottom: '0px', left: '0px', html
|
||||
dialog.className = 'dialog'
|
||||
$.append d.body, dialog
|
||||
g.callbacks.push threadStats.node
|
||||
node: (root) ->
|
||||
return if root.className
|
||||
threadStats.replies++
|
||||
threadStats.posts++
|
||||
if $ 'img[md5]', root
|
||||
threadStats.images++
|
||||
if threadStats.images > 150
|
||||
$('#icount').className = 'error'
|
||||
$('#rcount').textContent = threadStats.replies
|
||||
$('#rcount').textContent = threadStats.posts
|
||||
$('#icount').textContent = threadStats.images
|
||||
|
||||
unread =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user