From 1c13ec98ba188ec9829d9224b52227dccfefd3b2 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 17 Sep 2024 15:40:21 -0400 Subject: [PATCH] expand.js: don't add weird spacing --- js/expand.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/expand.js b/js/expand.js index 0fa8de05..4ab20245 100644 --- a/js/expand.js +++ b/js/expand.js @@ -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('
'); } else { $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('
'); } + */ last_expanded = $(this); $(document).trigger('new_post', this); } else {