more descriptive ids
This commit is contained in:
parent
684616d8ce
commit
7c6eafe358
@ -1973,7 +1973,7 @@
|
|||||||
var dialog, html;
|
var dialog, html;
|
||||||
threadStats.posts = 1;
|
threadStats.posts = 1;
|
||||||
threadStats.images = $('.op img[md5]') ? 1 : 0;
|
threadStats.images = $('.op img[md5]') ? 1 : 0;
|
||||||
html = "<div class=move><span id=rcount>" + threadStats.posts + "</span> / <span id=icount>" + threadStats.images + "</span></div>";
|
html = "<div class=move><span id=postcount>" + threadStats.posts + "</span> / <span id=imagecount>" + threadStats.images + "</span></div>";
|
||||||
dialog = ui.dialog('stats', {
|
dialog = ui.dialog('stats', {
|
||||||
bottom: '0px',
|
bottom: '0px',
|
||||||
left: '0px'
|
left: '0px'
|
||||||
@ -1993,8 +1993,8 @@
|
|||||||
$('#icount').className = 'error';
|
$('#icount').className = 'error';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#rcount').textContent = threadStats.posts;
|
$('#postcount').textContent = threadStats.posts;
|
||||||
return $('#icount').textContent = threadStats.images;
|
return $('#imagecount').textContent = threadStats.images;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
unread = {
|
unread = {
|
||||||
|
|||||||
@ -1549,7 +1549,7 @@ threadStats =
|
|||||||
init: ->
|
init: ->
|
||||||
threadStats.posts = 1
|
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><span id=rcount>#{threadStats.posts}</span> / <span id=icount>#{threadStats.images}</span></div>"
|
html = "<div class=move><span id=postcount>#{threadStats.posts}</span> / <span id=imagecount>#{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
|
||||||
@ -1561,8 +1561,8 @@ threadStats =
|
|||||||
threadStats.images++
|
threadStats.images++
|
||||||
if threadStats.images > 150
|
if threadStats.images > 150
|
||||||
$('#icount').className = 'error'
|
$('#icount').className = 'error'
|
||||||
$('#rcount').textContent = threadStats.posts
|
$('#postcount').textContent = threadStats.posts
|
||||||
$('#icount').textContent = threadStats.images
|
$('#imagecount').textContent = threadStats.images
|
||||||
|
|
||||||
unread =
|
unread =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user