mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 03:26:53 +03:00
setup_fix (#3906)
* Update edit_config_template.html * Update edit_config_template.html
This commit is contained in:
@@ -2677,7 +2677,19 @@ function saveTextAsFile() {
|
|||||||
WriteConfigININew();
|
WriteConfigININew();
|
||||||
SaveConfigToServer(domainname);
|
SaveConfigToServer(domainname);
|
||||||
|
|
||||||
|
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);
|
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) {
|
if (changeCamValue == 1) {
|
||||||
camSettingsSet();
|
camSettingsSet();
|
||||||
@@ -3332,7 +3344,7 @@ function openDescription() {
|
|||||||
|
|
||||||
if(hash == 'description') {
|
if(hash == 'description') {
|
||||||
document.getElementById("desc_details").open = true;
|
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";
|
document.getElementById("reboot_text").style.display = "none";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user