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

Loading…
Cancel
Save