forked from rDrama/rDrama
fds
parent
cebb75c0fb
commit
88f283c4a8
|
@ -897,15 +897,8 @@
|
|||
<div id="viewmore-{{offset}}"><button id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</a></div>
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
console.log('ajax test')
|
||||
</script>
|
||||
|
||||
{% if p %}
|
||||
<script>
|
||||
let curr;
|
||||
console.log('ajax test 2')
|
||||
document.getElementById("user-coins-amount").classList.add('unread2')
|
||||
{% if p and (not v or v.highlightcomments) %}
|
||||
{% if ajax %}
|
||||
comments = JSON.parse(localStorage.getItem("old-comment-counts")) || {}
|
||||
|
@ -919,8 +912,8 @@
|
|||
{% for c in p.comments2 %}
|
||||
{% if not (v and v.id==c[0]) %}
|
||||
if ({{c[1]*1000}} > lastCount.t)
|
||||
curr = document.getElementById("comment-{{c.id}}-only");
|
||||
if (curr) curr.classList.add('unread2');
|
||||
try {document.getElementById("comment-{{c.id}}-only").classList.add('unread2')}
|
||||
catch(e) {}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue