mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
1. Beta-Version mit Korrekturanmerkungen
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -108,7 +108,7 @@
|
||||
}
|
||||
|
||||
.ha-filesheader {
|
||||
@apply mb-8
|
||||
@apply mb-4
|
||||
}
|
||||
|
||||
.ha-availablefileslist {
|
||||
@@ -140,6 +140,14 @@
|
||||
@apply px-16 pb-16
|
||||
}
|
||||
|
||||
.ha-uploadcontainer .ha-setendyearform {
|
||||
@apply px-16 pb-16 float-right
|
||||
}
|
||||
|
||||
.ha-uploadcontainer .ha-setendyearform .ha-setendyearbutton {
|
||||
@apply mt-4 ml-6 rounded-md px-3 border-2 border-blue-600 hover:border-2 hover:shadow active:shadow-inner hover:border-blue-800 cursor-pointer
|
||||
}
|
||||
|
||||
/* Classes for FileList Component */
|
||||
.ha-filelistfieldset {
|
||||
|
||||
|
||||
@@ -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