diff options
| author | czaks <marcin@6irc.net> | 2015-04-10 23:43:07 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-10 23:43:07 +0200 |
| commit | bdda1613a6bc4b88dfe9027dc0f330194654ad9c (patch) | |
| tree | c2834b9e208a5cfcbedae475f07b30be27c54d7a | |
| parent | 2d68972dd790c96f25b997b2111d0551f1b46029 (diff) | |
thread-stats.js: final vichan fix, should work now
| -rw-r--r-- | js/thread-stats.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/thread-stats.js b/js/thread-stats.js index 6035de04..8873dbdb 100644 --- a/js/thread-stats.js +++ b/js/thread-stats.js @@ -12,18 +12,18 @@ $(document).ready(function(){ //check if page uses unique ID var IDsupport = ($('.poster_id').length > 0); var thread_id = (document.location.pathname + document.location.search).split('/'); - thread_id = thread_id[thread_id.length -1].split(/\+-/)[0].split('.')[0]; + thread_id = thread_id[thread_id.length -1].split('+')[0].split('-')[0].split('.')[0]; $('.boardlist.bottom, footer') .first() .before('<div id="thread_stats"></div>'); var el = $('#thread_stats'); - el.prepend('Page <span id="thread_stats_page">?</span>'); + el.prepend(_('Page')+' <span id="thread_stats_page">?</span>'); if (IDsupport){ el.prepend('<span id="thread_stats_uids">0</span> UIDs | '); } - el.prepend('<span id="thread_stats_images">0</span> images | '); - el.prepend('<span id="thread_stats_posts">0</span> replies | '); + el.prepend('<span id="thread_stats_images">0</span> '+_('images')+' | '); + el.prepend('<span id="thread_stats_posts">0</span> '+_('replies')+' | '); delete el; function update_thread_stats(){ var op = $('#thread_'+ thread_id +' > div.post.op:not(.post-hover):not(.inline)').first(); |
