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}`)
}