From 1e40128bdf432ee6f54400b878a110d904abb255 Mon Sep 17 00:00:00 2001 From: kek7198 Date: Sun, 5 Dec 2021 12:01:54 -0600 Subject: [PATCH] fix --- files/templates/submission.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/templates/submission.html b/files/templates/submission.html index fb134c6cf..e2ab19421 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -696,17 +696,19 @@ const el = document.getElementById(id) const form = new FormData(); const xhr = new XMLHttpRequest(); + xhr.open("post", "/viewmore/{{p.id}}/{{sort}}/{{offset}}"); xhr.withCredentials=true; xhr.onload=function(){ if (xhr.status==200) { el.innerHTML = xhr.response; } + el.classList.toggle('hidden'); } xhr.send(form) } - {% endif %}