From a4fceb7fe616482094d0096cf5bfd86e50aba67a Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 5 May 2023 05:02:18 +0300 Subject: [PATCH] fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4097393#context --- files/assets/js/submission_listing.js | 16 +--------------- files/templates/root.html | 6 ------ 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/files/assets/js/submission_listing.js b/files/assets/js/submission_listing.js index d0c7c6b72..809d2b11e 100644 --- a/files/assets/js/submission_listing.js +++ b/files/assets/js/submission_listing.js @@ -1,19 +1,5 @@ -const vid = document.getElementById('vid').value - function expandText(id) { - const toggling = document.getElementById('post-text-'+id) - const attr = "d-none"; - - if (vid != 2453 && toggling.classList.contains(attr)) { - document.querySelectorAll(".toggled-visible").forEach(i => { - i.classList.add(attr) - i.classList.remove("toggled-visible") - }); - toggling.classList.add("toggled-visible") - } - - toggling.classList.toggle(attr); - + document.getElementById('post-text-'+id).classList.toggle('d-none'); for (const e of document.getElementsByClassName('text-expand-icon-p_'+id)) { e.classList.toggle('fa-expand-alt'); diff --git a/files/templates/root.html b/files/templates/root.html index 8d2ef0b13..acb4ea870 100644 --- a/files/templates/root.html +++ b/files/templates/root.html @@ -29,12 +29,6 @@ {% endblock %} - {% if v %} - - {% else %} - - {% endif %} -