updated editors + new parameter in service file
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user