fug
This commit is contained in:
parent
0e72397956
commit
955efe33a1
@ -36,7 +36,6 @@ var nntpchan_mod_commit_spam = function(elem) {
|
|||||||
{
|
{
|
||||||
|
|
||||||
var ajax = new XMLHttpRequest();
|
var ajax = new XMLHttpRequest();
|
||||||
ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token"));
|
|
||||||
ajax.onreadystatechange = function() {
|
ajax.onreadystatechange = function() {
|
||||||
if(ajax.readyState == 4)
|
if(ajax.readyState == 4)
|
||||||
{
|
{
|
||||||
@ -60,6 +59,7 @@ var nntpchan_mod_commit_spam = function(elem) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
ajax.open("POST", "/mod/spam")
|
ajax.open("POST", "/mod/spam")
|
||||||
|
ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token"));
|
||||||
ajax.send(formdata);
|
ajax.send(formdata);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user