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 = {
|
threadStats = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var dialog, html;
|
var dialog, html;
|
||||||
threadStats.replies = 0;
|
threadStats.posts = 1;
|
||||||
threadStats.images = $('.op img[md5]') ? 1 : 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>";
|
html = "<div class=move>Posts: <span id=rcount>" + threadStats.posts + "</span> Images: <span id=icount>" + threadStats.images + "</span></div>";
|
||||||
dialog = ui.dialog('stats', {
|
dialog = ui.dialog('stats', {
|
||||||
bottom: '0px',
|
bottom: '0px',
|
||||||
left: '0px'
|
left: '0px'
|
||||||
@ -1986,14 +1986,14 @@
|
|||||||
if (root.className) {
|
if (root.className) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
threadStats.replies++;
|
threadStats.posts++;
|
||||||
if ($('img[md5]', root)) {
|
if ($('img[md5]', root)) {
|
||||||
threadStats.images++;
|
threadStats.images++;
|
||||||
if (threadStats.images > 150) {
|
if (threadStats.images > 150) {
|
||||||
$('#icount').className = 'error';
|
$('#icount').className = 'error';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#rcount').textContent = threadStats.replies;
|
$('#rcount').textContent = threadStats.posts;
|
||||||
return $('#icount').textContent = threadStats.images;
|
return $('#icount').textContent = threadStats.images;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1547,21 +1547,21 @@ reportButton =
|
|||||||
|
|
||||||
threadStats =
|
threadStats =
|
||||||
init: ->
|
init: ->
|
||||||
threadStats.replies = 0
|
threadStats.posts = 1
|
||||||
threadStats.images = if $ '.op img[md5]' then 1 else 0
|
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 = ui.dialog 'stats', bottom: '0px', left: '0px', html
|
||||||
dialog.className = 'dialog'
|
dialog.className = 'dialog'
|
||||||
$.append d.body, dialog
|
$.append d.body, dialog
|
||||||
g.callbacks.push threadStats.node
|
g.callbacks.push threadStats.node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.className
|
return if root.className
|
||||||
threadStats.replies++
|
threadStats.posts++
|
||||||
if $ 'img[md5]', root
|
if $ 'img[md5]', root
|
||||||
threadStats.images++
|
threadStats.images++
|
||||||
if threadStats.images > 150
|
if threadStats.images > 150
|
||||||
$('#icount').className = 'error'
|
$('#icount').className = 'error'
|
||||||
$('#rcount').textContent = threadStats.replies
|
$('#rcount').textContent = threadStats.posts
|
||||||
$('#icount').textContent = threadStats.images
|
$('#icount').textContent = threadStats.images
|
||||||
|
|
||||||
unread =
|
unread =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user