Skip to content

Commit f3e3ce5

Browse files
authored
setup_fix (#3906)
* Update edit_config_template.html * Update edit_config_template.html
1 parent ba03a7d commit f3e3ce5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

sd-card/html/edit_config_template.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,19 @@ <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='Update
26772677
WriteConfigININew();
26782678
SaveConfigToServer(domainname);
26792679

2680-
firework.launch('Configuration saved. It will get applied after the next reboot!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
2680+
if(window.location.hash) {
2681+
var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
2682+
2683+
if(hash == 'description') {
2684+
firework.launch('Configuration saved.', 'success', 2000);
2685+
}
2686+
else {
2687+
firework.launch('Configuration saved. It will get applied after the next reboot!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
2688+
}
2689+
}
2690+
else {
2691+
firework.launch('Configuration saved. It will get applied after the next reboot!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
2692+
}
26812693

26822694
if (changeCamValue == 1) {
26832695
camSettingsSet();
@@ -3332,7 +3344,7 @@ <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='Update
33323344

33333345
if(hash == 'description') {
33343346
document.getElementById("desc_details").open = true;
3335-
document.getElementById("reboot").style.display = "none";
3347+
// document.getElementById("reboot").style.display = "none";
33363348
document.getElementById("reboot_text").style.display = "none";
33373349
}
33383350
}

0 commit comments

Comments
 (0)