From 4602fa3117c7de83e691656e80b6848e245c62b2 Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 11 Mar 2015 16:16:35 -0700 Subject: [PATCH] Fix some bugs with new post form 3 --- inc/instance-config.php | 1 + js/multi-image.js | 3 --- templates/post_form.html | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/instance-config.php b/inc/instance-config.php index fd7fc962..9c8a326c 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -142,6 +142,7 @@ $config['additional_javascript'][] = 'js/image-hover.js'; $config['additional_javascript'][] = 'js/auto-scroll.js'; $config['additional_javascript'][] = 'js/twemoji/twemoji.js'; + $config['additional_javascript'][] = 'js/multi-image.js'; // Oekaki (now depends on config.oekaki so can be in all scripts) $config['additional_javascript'][] = 'js/jquery-ui.custom.min.js'; $config['additional_javascript'][] = 'js/wPaint/lib/wColorPicker.min.js'; diff --git a/js/multi-image.js b/js/multi-image.js index 6199bef0..de9b151e 100644 --- a/js/multi-image.js +++ b/js/multi-image.js @@ -21,9 +21,6 @@ function multi_image() { var new_file = '
'; $('[type=file]:last').after(new_file); - if ($("#quick-reply").length) { - $('#quick-reply [type=file]:last').after(new_file); - } if (typeof setup_form !== 'undefined') setup_form($('form[name="post"]')); } }) diff --git a/templates/post_form.html b/templates/post_form.html index 461a0e76..29c7f75d 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -180,6 +180,7 @@ {% endif %} + {% endif %} {# Should always be at the end #} {% if config.allow_roll %}
@@ -188,7 +189,6 @@
{% endif %} - {% endif %} {% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}