From f3e3ce504e363f104ce5342548383eb892bef132 Mon Sep 17 00:00:00 2001 From: SybexXx Date: Sun, 7 Sep 2025 17:47:40 +0200 Subject: [PATCH] setup_fix (#3906) * Update edit_config_template.html * Update edit_config_template.html --- sd-card/html/edit_config_template.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sd-card/html/edit_config_template.html b/sd-card/html/edit_config_template.html index e835f388..fc9e7ea8 100644 --- a/sd-card/html/edit_config_template.html +++ b/sd-card/html/edit_config_template.html @@ -2677,7 +2677,19 @@ function saveTextAsFile() { WriteConfigININew(); SaveConfigToServer(domainname); - firework.launch('Configuration saved. It will get applied after the next reboot!

\nreboot now', 'success', 5000); + if(window.location.hash) { + var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character + + if(hash == 'description') { + firework.launch('Configuration saved.', 'success', 2000); + } + else { + firework.launch('Configuration saved. It will get applied after the next reboot!

\nreboot now', 'success', 5000); + } + } + else { + firework.launch('Configuration saved. It will get applied after the next reboot!

\nreboot now', 'success', 5000); + } if (changeCamValue == 1) { camSettingsSet(); @@ -3332,7 +3344,7 @@ function openDescription() { if(hash == 'description') { document.getElementById("desc_details").open = true; - document.getElementById("reboot").style.display = "none"; + // document.getElementById("reboot").style.display = "none"; document.getElementById("reboot_text").style.display = "none"; } }