same as last commit
parent
4e220c917a
commit
e221e7548f
|
@ -22,7 +22,7 @@ function report_postModal(id) {
|
||||||
reason_post.focus()
|
reason_post.focus()
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
reportPostButton.addEventListener('click', function() {
|
reportPostButton.onclick = function() {
|
||||||
|
|
||||||
this.innerHTML='Reporting post';
|
this.innerHTML='Reporting post';
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
|
@ -45,5 +45,5 @@ function report_postModal(id) {
|
||||||
|
|
||||||
xhr.onerror=function(){alert(errortext)};
|
xhr.onerror=function(){alert(errortext)};
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
})
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue