fds
This commit is contained in:
parent
aeeac05f2a
commit
80e5c77d0a
4 changed files with 9 additions and 7 deletions
|
@ -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)};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue