updated editors + new parameter in service file

This commit is contained in:
2026-10-05 16:48:29 +02:00
parent 2e311119b0
commit 1a28a27b5e
8 changed files with 496 additions and 87 deletions
+2 -4
View File
@@ -232,8 +232,7 @@
let json;
try { json = JSON.parse(text); } catch (_) { throw new Error('Serverantwort ist kein JSON:\n'+text); }
if (!json.success) throw new Error(json.message || 'Fehler');
alert('Konfiguration angelegt: ' + json.filename);
location.reload();
location.href = `/admin/edit/${encodeURIComponent(json.filename)}`;
} catch (e) {
alert('Fehler: ' + e.message);
}
@@ -255,8 +254,7 @@
let json;
try { json = JSON.parse(text); } catch (_) { throw new Error('Serverantwort ist kein JSON:\n'+text); }
if (!json.success) throw new Error(json.message || 'Fehler');
alert('Theme angelegt: ' + json.path);
location.reload();
location.href = `/admin/theme/edit/${json.path.split('/').map(encodeURIComponent).join('/')}`;
} catch (e) {
alert('Fehler: ' + e.message);
}