partially revert 835ee3e577

master
Aevann1 2022-08-14 14:43:50 +02:00
parent a1b295d084
commit fefe9f1bde
3 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
function pinned_timestamp(id) {
const el = document.getElementById(id)
const time = new Date(parseInt(el.dataset.timestamp)*1000)
const pintooltip = el.getAttribute("title")
if (!pintooltip.includes('until')) el.setAttribute("title", `${pintooltip} until ${time}`)
const pintooltip = el.getAttribute("data-bs-original-title")
if (!pintooltip.includes('until')) el.setAttribute("data-bs-original-title", `${pintooltip} until ${time}`)
}
/** @type {HTMLImageElement} */

View File

@ -54,7 +54,7 @@ else
function badge_timestamp(t) {
const date = new Date(t.dataset.until*1000);
const text = t.getAttribute("title")
t.setAttribute("title", `${text} ${date.toString()}`);
const text = t.getAttribute("data-bs-original-title")
t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`);
t.removeAttribute("onmouseover")
}

View File

@ -19,14 +19,14 @@ set CACHE_VER = {
'js/award_modal.js': 254,
'js/bootstrap.js': 278,
'js/category_modal.js': 200,
'js/comments+submission_listing.js': 266,
'js/comments+submission_listing.js': 267,
'js/submission_listing.js': 261,
'js/emoji_modal.js': 314,
'js/formatting.js': 240,
'js/lottery.js': 256,
'js/marked.js': 283,
'js/submit.js': 269,
'js/userpage.js': 243,
'js/userpage.js': 244,
'js/userpage_v.js': 245,
'js/lozad.js': 260,