diff --git a/boards/static/js/thread.js b/boards/static/js/thread.js --- a/boards/static/js/thread.js +++ b/boards/static/js/thread.js @@ -12,14 +12,14 @@ function addGalleryPanel() { $('input[name="image-mode"]').change(function() { //gallery mode if($(this).val() === '1') { - $('#posts').replaceWith( + $('.thread').replaceWith( $('
').append(gallery) ); } //normal mode else { $('#posts-table').replaceWith( - $('
').append(normal) + $('
').append(normal) ); } });