mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Make reboots reliably reload the page
This commit is contained in:
parent
0d8bc06f04
commit
0e871e477a
2 changed files with 5 additions and 2 deletions
|
@ -17,6 +17,9 @@ function reboot() {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('GET', '/reboot', true);
|
xhr.open('GET', '/reboot', true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
setTimeout(function() {
|
||||||
|
window.location = "/";
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
)rawliteral"
|
)rawliteral"
|
||||||
|
|
|
@ -811,10 +811,10 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style='grid-column: span 2; text-align: center; padding-top: 10px;'><button "type='submit'>Save</button></div>
|
<div style='grid-column: span 2; text-align: center; padding-top: 10px;'><button type='submit'>Save</button></div>
|
||||||
|
|
||||||
<div style='grid-column: span 2; text-align: center; padding-top: 10px;' class="%SAVEDCLASS%">
|
<div style='grid-column: span 2; text-align: center; padding-top: 10px;' class="%SAVEDCLASS%">
|
||||||
<p>Settings saved. Reboot to take the settings into use.<p> <button onclick='askReboot()'>Reboot</button>
|
<p>Settings saved. Reboot to take the settings into use.<p> <button type='button' onclick='askReboot()'>Reboot</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue