großes refactoring

This commit is contained in:
2026-03-22 23:13:40 +01:00
parent 53e7bcbbcc
commit 409f003aec
99 changed files with 10124 additions and 4386 deletions

View File

@@ -777,6 +777,16 @@
async function loadLock() {
const res = await fetch('/keyholder/cardlock/' + lockId);
if (res.status === 404) {
// Prüfen, ob es ein TimeLock ist
const tlRes = await fetch('/keyholder/timelock/' + lockId);
if (tlRes.ok) {
window.location.replace('/activetimelock.html?lockId=' + lockId);
return;
}
document.getElementById('lockContent').textContent = 'Lock nicht gefunden.';
return;
}
if (!res.ok) {
document.getElementById('lockContent').textContent = 'Lock nicht gefunden.';
return;