From c8c0b04492f556cef5828ae391178e5832e17ade Mon Sep 17 00:00:00 2001 From: nonmakina Date: Sun, 11 Jul 2021 16:00:39 +0200 Subject: [PATCH] fixes quick reply --- js/file-selector.js | 2 +- js/quick-reply.js | 2 +- templates/post_form.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/file-selector.js b/js/file-selector.js index f90bfd3b..2d347b3b 100644 --- a/js/file-selector.js +++ b/js/file-selector.js @@ -23,7 +23,7 @@ $(''+ ''+ -'').prependTo('#upload td'); +'').prependTo('#upload td.upload-area'); var files = []; $('#upload_file').remove(); // remove the original file selector diff --git a/js/quick-reply.js b/js/quick-reply.js index f31af6af..926e5880 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -261,7 +261,7 @@ if ($(this).attr('name') == 'spoiler') { $td.find('label').remove(); $(this).attr('id', 'q-spoiler-image'); - $postForm.find('input[type="file"]').parent() + $postForm.find('#upload') .removeAttr('colspan') .after($('').append(this, ' ', $('