This commit is contained in:
Aevann1 2021-12-10 02:57:39 +02:00
parent 14b569f108
commit 1bf59a9192
5 changed files with 9 additions and 7 deletions

View file

@ -34,6 +34,7 @@ function poll_vote_no_v() {
}
function pinned_timestamp(id) {
const time = new Date(dataset.timestamp).toString()
document.getElementById(id).setAttribute("data-bs-original-title", `Pinned until ${time}`)
const el = document.getElementById(id)
const time = new Date(eldataset.timestamp).toString()
el.setAttribute("data-bs-original-title", `Pinned until ${time}`)
}

View file

@ -22,6 +22,7 @@ const popoverList = popoverTriggerList.map(function(popoverTriggerEl) {
})
function pinned_timestamp(id) {
const time = new Date(dataset.timestamp).toString()
document.getElementById(id).setAttribute("data-bs-original-title", `Pinned until ${time}`)
const el = document.getElementById(id)
const time = new Date(eldataset.timestamp).toString()
el.setAttribute("data-bs-original-title", `Pinned until ${time}`)
}

View file

@ -765,7 +765,7 @@
{% include "expanded_image_modal.html" %}
<script src="/assets/js/popover.js?v=10"></script>
<script src="/assets/js/comments.js?v=11"></script>
<script src="/assets/js/comments.js?v=12"></script>
<script>
{% if p and (not v or v.highlightcomments) %}

View file

@ -855,7 +855,7 @@
{% include "ban_modal.html" %}
{% endif %}
{% endif %}
<script src="/assets/js/comments.js?v=11"></script>
<script src="/assets/js/comments.js?v=12"></script>
{% include "expanded_image_modal.html" %}
{% endif %}

View file

@ -659,4 +659,4 @@
{% endif %}
<script src="/assets/js/clipboard.js?v=3"></script>
<script src="/assets/js/popover.js?v=10"></script>
<script src="/assets/js/submission_listing.js?v=7"></script>
<script src="/assets/js/submission_listing.js?v=8"></script>