fix
This commit is contained in:
parent
5530ae113e
commit
411230f48a
@ -202,10 +202,11 @@ function nntpchan_mod(mod_action, result_elem) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ajax.setRequestHeader("X-CSRF-Token", csrf);
|
|
||||||
if (mod_action.name) {
|
if (mod_action.name) {
|
||||||
|
|
||||||
var url = mod_action.name + "/" + target;
|
var url = mod_action.name + "/" + target;
|
||||||
ajax.open(mod_action.method || "GET", url);
|
ajax.open(mod_action.method || "GET", url);
|
||||||
|
ajax.setRequestHeader("X-CSRF-Token", csrf);
|
||||||
var data = mod_action.data;
|
var data = mod_action.data;
|
||||||
if (data) {
|
if (data) {
|
||||||
ajax.setRequestHeader("Content-type","text/json");
|
ajax.setRequestHeader("Content-type","text/json");
|
||||||
|
Reference in New Issue
Block a user