Browse Source

fixes quick reply

pull/40/head
nonmakina 3 years ago
parent
commit
c8c0b04492
  1. 2
      js/file-selector.js
  2. 2
      js/quick-reply.js
  3. 2
      templates/post_form.html

2
js/file-selector.js

@ -23,7 +23,7 @@ $('<div class="dropzone-wrap" style="display: none;">'+
'<div class="file-thumbs"></div>'+
'</div>'+
'</div>'+
'</div>').prependTo('#upload td');
'</div>').prependTo('#upload td.upload-area');
var files = [];
$('#upload_file').remove(); // remove the original file selector

2
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($('<td class="spoiler"></td>').append(this, ' ', $('<label for="q-spoiler-image">').text(_('Spoiler Image'))));
} else if ($(this).attr('name') == 'no_country') {

2
templates/post_form.html

@ -145,7 +145,7 @@
<th>
{% trans %}File{% endtrans %}
</th>
<td>
<td class="upload-area">
<input type="file" name="file" id="upload_file">
{% if config.allow_upload_by_url %}

Loading…
Cancel
Save