diff --git a/js/quick-reply.js b/js/quick-reply.js index 1ed2e505..e18c3451 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -52,7 +52,7 @@ $postForm.clone(); - $dummyStuff = $('
').appendTo($postForm); + $dummyStuff = $('
').appendTo($postForm.find('form')); $postForm.find('table tr').each(function() { var $th = $(this).children('th:first'); diff --git a/templates/header.html b/templates/header.html index dc6310e7..ab7db19f 100644 --- a/templates/header.html +++ b/templates/header.html @@ -12,6 +12,7 @@ var configRoot="{{ config.root }}"; var inMod = {% if mod %}true{% else %}false{% endif %}; var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : ""); + var max_images={{ config.max_images }}; {% if config.locale != "en" %} diff --git a/templates/main.js b/templates/main.js index a4deda03..6ce48d67 100644 --- a/templates/main.js +++ b/templates/main.js @@ -503,7 +503,6 @@ function ready() { {% endraw %} var post_date = "{{ config.post_date }}"; -var max_images = {{ config.max_images }}; if (typeof active_page === "undefined") { active_page = "page"; }