xcv
This commit is contained in:
parent
17a08aeb77
commit
527f436544
11 changed files with 16 additions and 16 deletions
|
@ -67,7 +67,7 @@ function vote(type, id, dir) {
|
|||
}
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection, true);
|
||||
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
@ -106,7 +106,7 @@ function buy(mb) {
|
|||
const xhr = new XMLHttpRequest();
|
||||
url = `/buy/${kind}`
|
||||
if (mb) url += "?mb=true"
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -8,7 +8,7 @@ function banModal(link, id, name) {
|
|||
fd.append("formkey", formkey());
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", `/ban_user/${id}?form`, true);
|
||||
xhr.open("POST", `/ban_user/${id}?form`);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
|
||||
xhr.onload = function(){
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function post(url) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
@ -9,7 +9,7 @@ function post(url) {
|
|||
|
||||
function post_toast3(url, button1, button2) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
@ -53,7 +53,7 @@ function report_commentModal(id, author) {
|
|||
this.innerHTML='Reporting comment';
|
||||
this.disabled = true;
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", '/report/comment/'+id, true);
|
||||
xhr.open("POST", '/report/comment/'+id);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
@ -106,7 +106,7 @@ function delete_commentModal(id) {
|
|||
|
||||
var url = '/delete/comment/' + id
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function delete_postModal(id) {
|
||||
document.getElementById("deletePostButton").onclick = function() {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", `/delete_post/${id}`, true);
|
||||
xhr.open("POST", `/delete_post/${id}`);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -8,7 +8,7 @@ function loadEmojis(form) {
|
|||
if (emojis == 1)
|
||||
{
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", '/marsey_list', true);
|
||||
xhr.open("GET", '/marsey_list');
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var f = new FormData();
|
||||
xhr.onload = function() {
|
||||
|
|
|
@ -11,7 +11,7 @@ tooltipTriggerList.map(function(element){
|
|||
|
||||
function post_toast(url, reload, data) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function post_toast2(url, button1, button2) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -8,7 +8,7 @@ function report_postModal(id) {
|
|||
this.disabled = true;
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", '/report/post/'+id, true);
|
||||
xhr.open("POST", '/report/post/'+id);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function post(url) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function post_toast_callback(url, data, callback) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", url);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
@ -143,7 +143,7 @@ function submitFormAjax(e) {
|
|||
}
|
||||
actionPath = form.getAttribute("action");
|
||||
|
||||
xhr.open("POST", actionPath, true);
|
||||
xhr.open("POST", actionPath);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
|
||||
xhr.onload = function() {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<script>
|
||||
function fp(fp) {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open("POST", '{{SITE_FULL}}/fp/'+fp, true);
|
||||
xhr.open("POST", '{{SITE_FULL}}/fp/'+fp);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue