# HG changeset patch # User neko259 # Date 2015-03-27 08:38:04 # Node ID 383bd4fae10b21145899f32008cbfad39c0f1b76 # Parent 30602d983ceaa2a87f7e20034e48af8b2b87d41d Changed closeForm to resetFormPosition in JS because the form isn't closed any more diff --git a/boards/static/js/thread.js b/boards/static/js/thread.js --- a/boards/static/js/thread.js +++ b/boards/static/js/thread.js @@ -40,9 +40,8 @@ function getForm() { return $('.post-form-w'); } -function closeForm() { +function resetFormPosition() { var form = getForm(); - //form.hide(); form.insertAfter($('.thread')); } diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -269,7 +269,7 @@ function updateOnPost(response, statusTe showAsErrors(form, ''); if (status === 'ok') { - closeForm(); + resetFormPosition(); resetForm(form); getThreadDiff(); scrollToBottom(); @@ -332,5 +332,4 @@ function processNewPost(post) { } $('#autoupdate').click(getThreadDiff); - closeForm(); }); diff --git a/boards/templates/boards/thread_normal.html b/boards/templates/boards/thread_normal.html --- a/boards/templates/boards/thread_normal.html +++ b/boards/templates/boards/thread_normal.html @@ -48,7 +48,7 @@
{% trans 'Text syntax' %}
-
{% trans 'Close form' %}
+
{% trans 'Close form' %}