This commit is contained in:
Aevann1 2022-02-01 08:23:36 +02:00
parent a3ad147297
commit aeeac05f2a
4 changed files with 22 additions and 18 deletions

View file

@ -1,6 +1,8 @@
function report_postModal(id) {
submitbutton=document.getElementById("reportPostButton");
document.getElementById("reportPostFormBefore").classList.remove('d-none');
document.getElementById("reportPostFormAfter").classList.add('d-none');
submitbutton.onclick = function() {
@ -18,6 +20,7 @@ function report_postModal(id) {
document.getElementById("reportPostFormBefore").classList.add('d-none');
document.getElementById("reportPostFormAfter").classList.remove('d-none');
this.disabled = false;
this.innerHTML='Report post';
};
xhr.onerror=function(){alert(errortext)};