expand.js: don't add weird spacing

This commit is contained in:
towards-a-new-leftypol 2024-09-17 15:40:21 -04:00
parent 8763b2cf40
commit e9fa6303ac
1 changed files with 2 additions and 0 deletions

View File

@ -32,11 +32,13 @@ $(document).ready(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('<br class="expanded">');
} else {
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
}
*/
last_expanded = $(this);
$(document).trigger('new_post', this);
} else {