marsey marsey marsey

This commit is contained in:
Aevann1 2022-01-22 13:54:48 +02:00
parent bee640bbb0
commit 6ee4ff4f5a
50 changed files with 987 additions and 991 deletions

View file

@ -4,7 +4,6 @@ function post(url) {
xhr.setRequestHeader('xhr', 'xhr');
var form = new FormData()
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.send(form);
};
@ -23,7 +22,6 @@ function post_toast3(url, button1, button2) {
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.onload = function() {
let data
@ -61,8 +59,6 @@ function report_commentModal(id, author) {
form.append("formkey", formkey());
form.append("reason", document.getElementById("reason-comment").value);
xhr.withCredentials=true;
xhr.onload=function() {
document.getElementById("reportCommentFormBefore").classList.add('d-none');
document.getElementById("reportCommentFormAfter").classList.remove('d-none');
@ -106,7 +102,6 @@ function delete_commentModal(id) {
xhr.setRequestHeader('xhr', 'xhr');
var form = new FormData()
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.onload = function() {location.reload(true);};
xhr.send(form);
}
@ -121,7 +116,6 @@ function post_reply(id){
const xhr = new XMLHttpRequest();
xhr.open("post", "/reply");
xhr.setRequestHeader('xhr', 'xhr');
xhr.withCredentials=true;
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-form-space-'+id);
@ -150,7 +144,6 @@ function comment_edit(id){
const xhr = new XMLHttpRequest();
xhr.open("post", "/edit_comment/"+id);
xhr.setRequestHeader('xhr', 'xhr');
xhr.withCredentials=true;
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-text-'+id);
@ -185,7 +178,6 @@ function post_comment(fullname){
const xhr = new XMLHttpRequest();
xhr.open("post", "/comment");
xhr.setRequestHeader('xhr', 'xhr');
xhr.withCredentials=true;
xhr.onload=function(){
if (xhr.status==200) {
commentForm=document.getElementById('comment-form-space-'+fullname);