From 835ee3e577bb735e8bd3054844909ae6cf47de18 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 13 Aug 2022 09:20:41 +0200 Subject: [PATCH] replace data-bs-original-title with title --- files/assets/js/comments+submission_listing.js | 4 ++-- files/assets/js/userpage.js | 4 ++-- files/templates/formatting.html | 2 +- files/templates/home.html | 2 +- files/templates/lottery.html | 6 ++---- files/templates/util/assetcache.html | 4 ++-- 6 files changed, 10 insertions(+), 12 deletions(-) diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index 2546c2020..0b55d6030 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -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("data-bs-original-title") - if (!pintooltip.includes('until')) el.setAttribute("data-bs-original-title", `${pintooltip} until ${time}`) + const pintooltip = el.getAttribute("title") + if (!pintooltip.includes('until')) el.setAttribute("title", `${pintooltip} until ${time}`) } /** @type {HTMLImageElement} */ diff --git a/files/assets/js/userpage.js b/files/assets/js/userpage.js index 74c38442b..ad4e64178 100644 --- a/files/assets/js/userpage.js +++ b/files/assets/js/userpage.js @@ -54,7 +54,7 @@ else function badge_timestamp(t) { const date = new Date(t.dataset.until*1000); - const text = t.getAttribute("data-bs-original-title") - t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`); + const text = t.getAttribute("title") + t.setAttribute("title", `${text} ${date.toString()}`); t.removeAttribute("onmouseover") } \ No newline at end of file diff --git a/files/templates/formatting.html b/files/templates/formatting.html index f42a02ec0..439f635bc 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -109,7 +109,7 @@ Text 2 Pat User :@snappypat: - :@snappypat: + :@snappypat: Random Marsey diff --git a/files/templates/home.html b/files/templates/home.html index f71f07b0b..cda950423 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -237,7 +237,7 @@
-
+