##// END OF EJS Templates
Reset form to the end of thread instead of closing it
neko259 -
r1058:30602d98 default
parent child Browse files
Show More
@@ -42,7 +42,7 b' function getForm() {'
42
42
43 function closeForm() {
43 function closeForm() {
44 var form = getForm();
44 var form = getForm();
45 form.hide();
45 //form.hide();
46 form.insertAfter($('.thread'));
46 form.insertAfter($('.thread'));
47 }
47 }
48
48
@@ -27,7 +27,11 b''
27 {% endif %}
27 {% endif %}
28 {% endif %}
28 {% endif %}
29 {% if is_opening and need_open_link %}
29 {% if is_opening and need_open_link %}
30 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
30 {% if thread.archived %}
31 <a class="link" href="{% url 'thread' post.id %}">{% trans "Open" %}</a>
32 {% else %}
33 <a class="link" href="{% url 'thread' post.id %}#form">{% trans "Reply" %}</a>
34 {% endif %}
31 {% endif %}
35 {% endif %}
32 {% if reply_link and not thread.archived %}
36 {% if reply_link and not thread.archived %}
33 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
37 <a href="#form" onclick="addQuickReply('{{ post.id }}'); return false;">{% trans 'Reply' %}</a>
@@ -48,7 +48,7 b''
48 </div>
48 </div>
49 <div><a href="{% url "staticpage" name="help" %}">
49 <div><a href="{% url "staticpage" name="help" %}">
50 {% trans 'Text syntax' %}</a></div>
50 {% trans 'Text syntax' %}</a></div>
51 <div><a href="#" onClick="getForm().hide(); return false;">{% trans 'Close form' %}</a></div>
51 <div><a href="#" onClick="closeForm(); return false;">{% trans 'Close form' %}</a></div>
52 </div>
52 </div>
53 </div>
53 </div>
54
54
General Comments 0
You need to be logged in to leave comments. Login now