# HG changeset patch # User neko259 # Date 2015-03-27 08:35:51 # Node ID 30602d983ceaa2a87f7e20034e48af8b2b87d41d # Parent eaae8ea13582df0c96a29e47830d2e1d6d1e299a Reset form to the end of thread instead of closing it 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 @@ -42,7 +42,7 @@ function getForm() { function closeForm() { var form = getForm(); - form.hide(); + //form.hide(); form.insertAfter($('.thread')); } diff --git a/boards/templates/boards/post.html b/boards/templates/boards/post.html --- a/boards/templates/boards/post.html +++ b/boards/templates/boards/post.html @@ -27,7 +27,11 @@ {% endif %} {% endif %} {% if is_opening and need_open_link %} - {% trans "Open" %} + {% if thread.archived %} + {% trans "Open" %} + {% else %} + {% trans "Reply" %} + {% endif %} {% endif %} {% if reply_link and not thread.archived %} {% trans 'Reply' %} 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' %}