summaryrefslogtreecommitdiff
path: root/templates/post_thread.html
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-06-12 15:36:01 +0000
committerFredrick Brennan <admin@8chan.co>2014-06-12 15:36:40 +0000
commit1d6f46d9bbcf84368be9cd3920e034387da27514 (patch)
tree22a9e01c97dc6f1f7848485d99a1b4ea900b2623 /templates/post_thread.html
parent427a9938a7fbc43fb515379764d2978d0781ee47 (diff)
Fix scroll to issues with post-hover.js, clean up highlightReply
Diffstat (limited to 'templates/post_thread.html')
-rw-r--r--templates/post_thread.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 335c1713..c246a16c 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -2,8 +2,9 @@
{# tabs and new lines will be ignored #}
<div id="thread_{{ post.id }}" data-board="{{ board.uri }}">
+{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
{% include 'post/fileinfo.html' %}
-<div class="post op" {%if post.num_files > 1%}style='clear:both'{%endif%}><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
+<div class="post op" {%if post.num_files > 1%}style='clear:both'{%endif%}><p class="intro">
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
<label for="delete_{{ post.id }}">
{% include 'post/subject.html' %}
@@ -12,11 +13,9 @@
{% include 'post/flag.html' %}
{% include 'post/time.html' %}
</label>
- {% include 'post/poster_id.html' %}
- <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>
+ {% include 'post/poster_id.html' %}&nbsp;
+ <a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{{ post.link }}">No.</a>
+ <a class="post_no" onclick="citeReply({{ post.id }})" href="{{ post.link('q') }}">{{ post.id }}</a>
{% if post.sticky %}
{% if config.font_awesome %}
<i class="fa fa-thumb-tack"></i>