From a58e40aff520aa23b21656f05cbde2ac9bcdd19a Mon Sep 17 00:00:00 2001 From: M_ars Date: Mon, 8 Aug 2022 08:09:06 +0200 Subject: [PATCH] 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 --- release/src-rt-6.x.4708/router/www/advanced-misc.asp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/release/src-rt-6.x.4708/router/www/advanced-misc.asp b/release/src-rt-6.x.4708/router/www/advanced-misc.asp index d412ad6c7b..a30788fc45 100644 --- a/release/src-rt-6.x.4708/router/www/advanced-misc.asp +++ b/release/src-rt-6.x.4708/router/www/advanced-misc.asp @@ -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);