mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
1. Beta-Version mit Korrekturanmerkungen
This commit is contained in:
@@ -27,4 +27,24 @@ const USESubmit = async function (oFormElement, file = null) {
|
||||
document.getElementById("ha-lds-ellipsis-load").style.display = "none";
|
||||
document.getElementById("ha-filelistoutput").textContent = e;
|
||||
})
|
||||
}
|
||||
|
||||
const YEARSUBMIT = async function (oFormElement, file = null) {
|
||||
let fd = new FormData(oFormElement);
|
||||
document.getElementById("ha-setendyearbutton").style.pointerEvents = "none";
|
||||
await fetch(oFormElement.action, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'RequestVerificationToken': getCookie('RequestVerificationToken')
|
||||
},
|
||||
body: fd
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(json => {
|
||||
document.getElementById("ha-setendyearbutton").style.pointerEvents = "auto";
|
||||
location.reload();
|
||||
})
|
||||
.catch ((e) => {
|
||||
document.getElementById("ha-setendyearbutton").style.pointerEvents = "auto";
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user