Add reply to this thread link to the bottom of the post view
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<div class="column"> </div>
|
||||
<div class="column" style="text-align: center;">
|
||||
<h2>
|
||||
<a id="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a>
|
||||
<a class="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="column"> </div>
|
||||
@@ -51,10 +51,18 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="column"> </div>
|
||||
<div class="column" style="text-align: center;">
|
||||
[ <a class="create_reply" href="{% url 'board:reply_create' url=board.url id=post.id %}">{% translate "Reply to this thread" %}</a> ]
|
||||
</div>
|
||||
<div class="column"> </div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const REPLY_URL = "{% url 'board:reply_create' url=board.url id=post.id %}";
|
||||
|
||||
$("#create_reply").on("click", (e) => {
|
||||
$(".create_reply").on("click", (e) => {
|
||||
e.preventDefault();
|
||||
openReplyWindow(REPLY_URL);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user