Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions sd-card/html/edit_config_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,19 @@ <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='Update
WriteConfigININew();
SaveConfigToServer(domainname);

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);
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!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
}
}
else {
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);
}

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

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";
}
}
Expand Down