forked from GithubBackups/vichan
Fix some bugs with new post form 2
This commit is contained in:
parent
ca39eb255a
commit
800c3ddde3
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
$postForm.clone();
|
$postForm.clone();
|
||||||
|
|
||||||
$dummyStuff = $('<div class="nonsense"></div>').appendTo($postForm);
|
$dummyStuff = $('<div class="nonsense"></div>').appendTo($postForm.find('form'));
|
||||||
|
|
||||||
$postForm.find('table tr').each(function() {
|
$postForm.find('table tr').each(function() {
|
||||||
var $th = $(this).children('th:first');
|
var $th = $(this).children('th:first');
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
var configRoot="{{ config.root }}";
|
var configRoot="{{ config.root }}";
|
||||||
var inMod = {% if mod %}true{% else %}false{% endif %};
|
var inMod = {% if mod %}true{% else %}false{% endif %};
|
||||||
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
|
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
|
||||||
|
var max_images={{ config.max_images }};
|
||||||
</script>
|
</script>
|
||||||
{% if config.locale != "en" %}
|
{% if config.locale != "en" %}
|
||||||
<script type="text/javascript" src="{{ config.root }}inc/locale/{{ config.locale|split('.')[0] }}/LC_MESSAGES/javascript.js"></script>
|
<script type="text/javascript" src="{{ config.root }}inc/locale/{{ config.locale|split('.')[0] }}/LC_MESSAGES/javascript.js"></script>
|
||||||
|
@ -503,7 +503,6 @@ function ready() {
|
|||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
var post_date = "{{ config.post_date }}";
|
var post_date = "{{ config.post_date }}";
|
||||||
var max_images = {{ config.max_images }};
|
|
||||||
if (typeof active_page === "undefined") {
|
if (typeof active_page === "undefined") {
|
||||||
active_page = "page";
|
active_page = "page";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user