From 8dc87e35bd7465f56d48da10246955b5b3eb3f4a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Dec 2021 14:51:21 +0200 Subject: [PATCH] dfd --- files/templates/comments.html | 22 ++++++------- files/templates/default.html | 2 +- files/templates/login.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 2 +- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submission_listing.html | 42 +++++++++++++------------ files/templates/submit.html | 2 +- 9 files changed, 40 insertions(+), 38 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 82e7f14ef..6b6a4c89b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -836,18 +836,18 @@ document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!"; {% endif %} } + + const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')); + + const popoverList = popoverTriggerList.map(function(popoverTriggerEl) { + const popoverId = popoverTriggerEl.getAttribute('data-content-id'); + const contentEl = document.getElementById(popoverId).innerHTML; + return new bootstrap.Popover(popoverTriggerEl, { + content: contentEl, + html: true, + }); + }) }); - - const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')); - - const popoverList = popoverTriggerList.map(function(popoverTriggerEl) { - const popoverId = popoverTriggerEl.getAttribute('data-content-id'); - const contentEl = document.getElementById(popoverId).innerHTML; - return new bootstrap.Popover(popoverTriggerEl, { - content: contentEl, - html: true, - }); - }) diff --git a/files/templates/default.html b/files/templates/default.html index dc60d9c09..7d85a1ea5 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1,7 +1,7 @@ - + diff --git a/files/templates/login.html b/files/templates/login.html index 9cec011df..07ac140ab 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -114,7 +114,7 @@ - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 8cf83f751..e7fa2ff4e 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -236,7 +236,7 @@ {% block onload %}{% endblock %} - + + + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 06194c7d4..25e65a4d9 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -96,7 +96,7 @@ - + diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index f16a6122f..2a79f8c80 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -659,28 +659,30 @@ {% if v %} diff --git a/files/templates/submit.html b/files/templates/submit.html index e01bf1cc4..87ce4c610 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -173,7 +173,7 @@ {% endblock %} - +