sfd
parent
7cb83ca92a
commit
78aa9db570
|
@ -175,6 +175,8 @@
|
||||||
<script>
|
<script>
|
||||||
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
comments = JSON.parse(localStorage.getItem("comment-counts")) || {}
|
||||||
lastCount = comments['{{p.id}}']
|
lastCount = comments['{{p.id}}']
|
||||||
|
console.log(lastCount)
|
||||||
|
console.log(comments)
|
||||||
if (lastCount && {{c.created_utc}} > lastCount.t) {
|
if (lastCount && {{c.created_utc}} > lastCount.t) {
|
||||||
document.getElementsById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Unread"></i>'
|
document.getElementsById("reddot-{{c.id}}").innerHTML = '<i style="color:red !important" class="text-admin fas fa-circle" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Unread"></i>'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue