diff --git a/js/expand.js b/js/expand.js index 4ab20245..45312746 100644 --- a/js/expand.js +++ b/js/expand.js @@ -28,17 +28,15 @@ $(document).ready(function(){ context: document.body, success: function(data) { var last_expanded = false; - $(data).find('div.post.reply').each(function() { + $(data).find('div.postcontainer').each(function() { thread.find('div.hidden').remove(); var post_in_doc = thread.find('#' + $(this).attr('id')); if(post_in_doc.length == 0) { - /* if(last_expanded) { - $(this).addClass('expanded').insertAfter(last_expanded).before('
'); + $(this).addClass('expanded').insertAfter(last_expanded); } else { - $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('
'); + $(this).addClass('expanded').insertAfter(thread.find('div.post:first')); } - */ last_expanded = $(this); $(document).trigger('new_post', this); } else {