From 9a9a34350f647f80759898d51fe5d0fa50263c46 Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:01:24 -0500 Subject: [PATCH] fix: explicitly hide advanced elements based on cookie (#28) --- .../local/emhttp/plugins/tailscale/include/Pages/Settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usr/local/emhttp/plugins/tailscale/include/Pages/Settings.php b/src/usr/local/emhttp/plugins/tailscale/include/Pages/Settings.php index ff59052..8723670 100644 --- a/src/usr/local/emhttp/plugins/tailscale/include/Pages/Settings.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/Pages/Settings.php @@ -195,6 +195,8 @@ function requestErase(e) { if ($.cookie('tailscale_view_mode') == 'advanced') { $('.advanced').show(); + } else { + $('.advanced').hide(); } $('.advancedview').switchButton({