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 %}