mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-20 12:41:17 +01:00
highlightReply fix for Gecko
Issue https://8chan.co/meta/res/45789.html
This commit is contained in:
parent
755fc1e592
commit
8a074d8246
@ -253,11 +253,12 @@ function get_cookie(cookie_name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function highlightReply(id) {
|
function highlightReply(id, event) {
|
||||||
if (typeof window.event != "undefined") {
|
if (typeof window.event != "undefined") {
|
||||||
// don't highlight on middle click
|
// don't highlight on middle click
|
||||||
if (event.which == 2) return true;
|
if (event.which == 2) return true;
|
||||||
if (active_page == 'thread' && typeof window.event.preventDefault != "undefined") window.event.preventDefault();
|
var e = event || window.event;
|
||||||
|
if (active_page == 'thread' && typeof e.preventDefault != "undefined") e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
var divs = document.getElementsByTagName('div');
|
var divs = document.getElementsByTagName('div');
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{% include 'post/time.html' %}
|
{% include 'post/time.html' %}
|
||||||
</label>
|
</label>
|
||||||
{% include 'post/poster_id.html' %}
|
{% include 'post/poster_id.html' %}
|
||||||
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
<a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }}, event)" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a>
|
||||||
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
<a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% include 'post/fileinfo.html' %}
|
{% include 'post/fileinfo.html' %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user