From b571a71f443c4307ba38f10952d2b23a91a48dfc Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 1 May 2023 20:15:39 +0300 Subject: [PATCH] do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4070091#context --- files/assets/js/submission_listing.js | 4 +++- files/templates/root.html | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/files/assets/js/submission_listing.js b/files/assets/js/submission_listing.js index 632f83e28..d0c7c6b72 100644 --- a/files/assets/js/submission_listing.js +++ b/files/assets/js/submission_listing.js @@ -1,8 +1,10 @@ +const vid = document.getElementById('vid').value + function expandText(id) { const toggling = document.getElementById('post-text-'+id) const attr = "d-none"; - if (toggling.classList.contains(attr)) { + if (vid != 2453 && toggling.classList.contains(attr)) { document.querySelectorAll(".toggled-visible").forEach(i => { i.classList.add(attr) i.classList.remove("toggled-visible") diff --git a/files/templates/root.html b/files/templates/root.html index 8f25fdb99..54c032f1a 100644 --- a/files/templates/root.html +++ b/files/templates/root.html @@ -29,6 +29,12 @@ {% endblock %} + {% if v %} + + {% else %} + + {% endif %} +