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, ' ', $('