dsfsdf
parent
31b3af56f7
commit
d0ff7cf8e9
|
@ -28,11 +28,13 @@
|
|||
|
||||
{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %}
|
||||
<script>
|
||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||
lastCount = comments['{{p.id}}']
|
||||
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
|
||||
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Unread"></i>'
|
||||
}
|
||||
window.addEventListener("load",function(event) {
|
||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||
lastCount = comments['{{p.id}}']
|
||||
if (lastCount && {{c.created_utc*1000}} > lastCount.t) {
|
||||
document.getElementById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="" data-bs-original-title="Unread"></i>'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
|
||||
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
|
||||
<script src="/assets/js/new_comments_count.js?v=53"></script>
|
||||
|
||||
{% if p.award_count("train") %}
|
||||
<style>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% set cc='COUNTRY CLUB' %}
|
||||
{% endif %}
|
||||
|
||||
<script defer src="/assets/js/new_comments_count.js?v=53"></script>
|
||||
<script src="/assets/js/new_comments_count.js?v=53"></script>
|
||||
|
||||
{% for p in listing %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue