diff options
| author | Forkless <REDACTED@gmail.com> | 2014-11-22 19:41:23 -0600 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-10 15:36:34 +0200 |
| commit | 4b782d6163d061e394e857d6c4f1a94391ddf01b (patch) | |
| tree | 1e01e4145cf05ce5e5fc06b38080e8f2416c0f1e | |
| parent | cf91daee7cfbdbede0e0d01b40dd7879cab88186 (diff) | |
Fix thread stats so post count hover works on the OP's id.
| -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) { |
