mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-12 09:13:07 +01:00
Merge pull request #279 from forklessanon/fix-3
Fix thread stats so post count hover works on the OP's id.
This commit is contained in:
commit
d871e3942d
@ -50,9 +50,12 @@ $(document).ready(function(){
|
|||||||
ids[opID] = 0;
|
ids[opID] = 0;
|
||||||
}
|
}
|
||||||
ids[opID]++;
|
ids[opID]++;
|
||||||
|
var cur = op.find('>.intro >.poster_id');
|
||||||
|
cur.find('+.posts_by_id').remove();
|
||||||
|
cur.after('<span class="posts_by_id"> ('+ ids[cur.text()] +')</span>');
|
||||||
replies.each(function(){
|
replies.each(function(){
|
||||||
var cur = $(this).find('> .intro > .poster_id');
|
cur = $(this).find('>.intro >.poster_id');
|
||||||
cur.find('+ .posts_by_id').remove();
|
cur.find('+.posts_by_id').remove();
|
||||||
cur.after('<span class="posts_by_id"> ('+ ids[cur.text()] +')</span>');
|
cur.after('<span class="posts_by_id"> ('+ ids[cur.text()] +')</span>');
|
||||||
});
|
});
|
||||||
var size = function(obj) {
|
var size = function(obj) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user