summaryrefslogtreecommitdiff
path: root/js/thread-stats.js
diff options
context:
space:
mode:
authorForkless <REDACTED@gmail.com>2014-11-22 19:41:23 -0600
committerczaks <marcin@6irc.net>2015-04-10 15:36:34 +0200
commit4b782d6163d061e394e857d6c4f1a94391ddf01b (patch)
tree1e01e4145cf05ce5e5fc06b38080e8f2416c0f1e /js/thread-stats.js
parentcf91daee7cfbdbede0e0d01b40dd7879cab88186 (diff)
Fix thread stats so post count hover works on the OP's id.
Diffstat (limited to 'js/thread-stats.js')
-rw-r--r--js/thread-stats.js7
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) {