summaryrefslogtreecommitdiff
path: root/templates/post_reply.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-12-25 14:16:28 +0100
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:45:07 -0500
commit7ae9b05b281187b209e420ceacc5e308deae4303 (patch)
tree12e7d1daf02b2ffcece207d1710b4209819dbd11 /templates/post_reply.html
parent3718081470ee161e91534f8356229bfdc85a1bce (diff)
fix clicking on post ids with dynamically loaded javascript
Diffstat (limited to 'templates/post_reply.html')
-rw-r--r--templates/post_reply.html12
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html
index c5d24247..4fe98ded 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -38,16 +38,8 @@
{% if config.poster_ids %}
ID: {{ post.ip|poster_id(post.thread) }}
{% endif %}
- <a class="post_no" {% if not index %}onclick="highlightReply({{ post.id }})" {% endif %}href="{{ post.link }}">No.</a>
- <a class="post_no"
- {% if not index %}
- onclick="citeReply({{ post.id }});"
- {% endif %}
- href="{% if index %}
- {{ post.link('q') }}
- {% else %}
- javascript:void(0);
- {% endif %}">
+ <a class="post_no" onclick="return document.querySelectorAll('div.banner').length ? highlightReply({{ post.id }}) : true;" href="{{ post.link }}">No.</a>
+ <a class="post_no" onclick="return document.querySelectorAll('div.banner').length ? citeReply({{ post.id }}) : true;" href="{{ post.link('q') }}">
{{ post.id }}
</a>
</p>