From bfd64a885e94f0b2e4c9ac0ca81e2aa994f90a03 Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Wed, 15 Jan 2025 20:59:09 +0800 Subject: [PATCH] Removed confirm from access - Removed troublesome confirm popup from black / whitelist - Minor fix to checkbox css --- src/web/components/access.html | 8 ++++---- src/web/darktheme.css | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/web/components/access.html b/src/web/components/access.html index 10f5437..6a59453 100644 --- a/src/web/components/access.html +++ b/src/web/components/access.html @@ -1174,7 +1174,7 @@ } function removeIpBlacklist(ipaddr){ - if (confirm("Confirm remove blacklist for " + ipaddr + " ?")){ + //if (confirm("Confirm remove blacklist for " + ipaddr + " ?")){ $.cjax({ url: "/api/blacklist/ip/remove", type: "POST", @@ -1191,7 +1191,7 @@ } }); - } + //} } /* @@ -1318,7 +1318,7 @@ } function removeIpWhitelist(ipaddr){ - if (confirm("Confirm remove whitelist for " + ipaddr + " ?")){ + //if (confirm("Confirm remove whitelist for " + ipaddr + " ?")){ $.cjax({ url: "/api/whitelist/ip/remove", type: "POST", @@ -1335,7 +1335,7 @@ } }); - } + //} } /* diff --git a/src/web/darktheme.css b/src/web/darktheme.css index 3862adb..16b9042 100644 --- a/src/web/darktheme.css +++ b/src/web/darktheme.css @@ -209,6 +209,10 @@ body.darkTheme .ui.toggle.checkbox input:checked ~ label::before{ background-color: var(--buttom_toggle_active) !important; } +body.darkTheme .ui.checkbox:not(.toggle) input[type="checkbox"]{ + opacity: 100% !important; +} + #sidemenuBtn{ border: 1px solid var(--button_border_color) !important; }