This commit is contained in:
Aevann1 2022-02-01 08:26:18 +02:00
parent aeeac05f2a
commit 80e5c77d0a
4 changed files with 9 additions and 7 deletions

View file

@ -3,6 +3,8 @@ function report_postModal(id) {
submitbutton=document.getElementById("reportPostButton");
document.getElementById("reportPostFormBefore").classList.remove('d-none');
document.getElementById("reportPostFormAfter").classList.add('d-none');
submitbutton.disabled = false;
submitbutton.innerHTML='Report post';
submitbutton.onclick = function() {
@ -19,8 +21,6 @@ function report_postModal(id) {
xhr.onload=function() {
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)};