GUI: advanced-misc.asp - Make it possible to save settings without rebooting (reboot required for some setttings like CTF, Jumbo Frames, etc.)

Note: see also arm issue 235 (at least partly)
https://bitbucket.org/pedro311/freshtomato-arm/issues/235/allow-to-modify-all-the-settings-without
arm-sdk7
M_ars 3 years ago committed by pedro
parent a54d845c61
commit a58e40aff5

@ -47,11 +47,13 @@ function save() {
/* BCMNAT-END */
(fom.jumbo_frame_enable.value != nvram.jumbo_frame_enable) ||
(fom.jumbo_frame_size.value != nvram.jumbo_frame_size)) {
if (!confirm("Router must be rebooted to apply changes. Reboot now?"))
return;
fom._reboot.value = 1;
form.submit(fom, 0);
if (confirm("Router must be rebooted to apply changed settings. Reboot now? (and commit changes to NVRAM)")) {
fom._reboot.value = 1;
form.submit(fom, 0);
}
else { /* countinue without reboot (user wants it that way) */
form.submit(fom, 1);
}
}
else { /* continue without reboot */
form.submit(fom, 1);

Loading…
Cancel
Save