diff options
| -rw-r--r-- | js/thread-stats.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/thread-stats.js b/js/thread-stats.js index 1785b79a..9b9b3cb3 100644 --- a/js/thread-stats.js +++ b/js/thread-stats.js @@ -50,9 +50,12 @@ $(document).ready(function(){ ids[opID] = 0; } 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(){ - var cur = $(this).find('> .intro > .poster_id'); - cur.find('+ .posts_by_id').remove(); + cur = $(this).find('>.intro >.poster_id'); + cur.find('+.posts_by_id').remove(); cur.after('<span class="posts_by_id"> ('+ ids[cur.text()] +')</span>'); }); var size = function(obj) { |
