mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
fix clicking on post ids with dynamically loaded javascript
This commit is contained in:
parent
d2e597a22c
commit
f64ab4fd1c
@ -155,6 +155,7 @@ function highlightReply(id) {
|
||||
if (post)
|
||||
post.className += ' highlighted';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function generatePassword() {
|
||||
@ -207,6 +208,7 @@ function citeReply(id, with_link) {
|
||||
$(window).trigger('cite', [id, with_link]);
|
||||
$(textarea).change();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function rememberStuff() {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user