Fix some bugs with new post form 2

This commit is contained in:
8chan 2015-03-11 05:44:46 -07:00
parent ca39eb255a
commit 800c3ddde3
3 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
$postForm.clone();
$dummyStuff = $('<div class="nonsense"></div>').appendTo($postForm);
$dummyStuff = $('<div class="nonsense"></div>').appendTo($postForm.find('form'));
$postForm.find('table tr').each(function() {
var $th = $(this).children('th:first');

View File

@ -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 }};
</script>
{% if config.locale != "en" %}
<script type="text/javascript" src="{{ config.root }}inc/locale/{{ config.locale|split('.')[0] }}/LC_MESSAGES/javascript.js"></script>

View File

@ -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";
}