Browse Source

Have to load onready

pull/40/head
8chan 10 years ago
committed by czaks
parent
commit
1aa8f6251d
  1. 2
      js/thread-stats.js

2
js/thread-stats.js

@ -8,6 +8,7 @@
* $config['additional_javascript'][] = 'js/thread-stats.js';
*/
if (active_page == 'thread') {
$(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('/');
@ -100,7 +101,6 @@ if (active_page == 'thread') {
if (!found) $('#thread_stats_page').css('color','red');
});
},30000);
$(document).ready(function(){
$('body').append('<style>.posts_by_id{display:none;}.poster_id:hover+.posts_by_id{display:initial}</style>');
update_thread_stats();
$('#update_thread').click(update_thread_stats);

Loading…
Cancel
Save