Bugfix arrange shelf

Bugfix remote login
Bugfix perform Update
This commit is contained in:
Ozzie Isaacs
2021-10-06 22:06:33 +02:00
parent d8f9e2feb2
commit aca5324914
7 changed files with 13 additions and 27 deletions
+5
View File
@@ -35,6 +35,7 @@ function sendData(path) {
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", path);
// form.setAttribute("csrf_token", );
for (counter = 0;counter < maxElements;counter++) {
tmp[counter] = elements[counter].getAttribute("id");
@@ -44,6 +45,10 @@ function sendData(path) {
hiddenField.setAttribute("value", String(counter + 1));
form.appendChild(hiddenField);
}
$("<input type='hidden'/>")
.attr("name", "csrf_token").val($("input[name='csrf_token']").val())
.appendTo(form);
document.body.appendChild(form);
form.submit();
}