From 210423ec0a4111c3ba850290d6f2bd00edb8db54 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 24 Aug 2024 00:47:18 +0200 Subject: [PATCH] quick-post-controls.js: port to new html structure --- js/quick-post-controls.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js index c625fa85..f842f02d 100644 --- a/js/quick-post-controls.js +++ b/js/quick-post-controls.js @@ -14,19 +14,17 @@ $(document).ready(function() { let open_form = function() { - let thread = $(this).parent().parent().hasClass('op'); let id = $(this).attr('name').match(/^delete_(\d+)$/)[1]; if (this.checked) { let post_form = $('
' + - '
' + - (!thread ? '
' : '') + + '

' + '' + - ': ' + + ': ' + '' + - '' + + '' + '' + ' ' + @@ -57,11 +55,7 @@ $(document).ready(function() { post_form.find('input[type="password"]').val(localStorage.password); - if (thread) { - post_form.prependTo($(this).parent().parent().find('div.body')); - } else { - post_form.appendTo($(this).parent().parent()); - } + post_form.appendTo($(this).parent().parent()); $(window).trigger('quick-post-controls', post_form); } else {