Removed confirm from access

- Removed troublesome confirm popup from black / whitelist
- Minor fix to checkbox css
This commit is contained in:
Toby Chui 2025-01-15 20:59:09 +08:00
parent 45f61b3053
commit bfd64a885e
2 changed files with 8 additions and 4 deletions

View File

@ -1174,7 +1174,7 @@
} }
function removeIpBlacklist(ipaddr){ function removeIpBlacklist(ipaddr){
if (confirm("Confirm remove blacklist for " + ipaddr + " ?")){ //if (confirm("Confirm remove blacklist for " + ipaddr + " ?")){
$.cjax({ $.cjax({
url: "/api/blacklist/ip/remove", url: "/api/blacklist/ip/remove",
type: "POST", type: "POST",
@ -1191,7 +1191,7 @@
} }
}); });
} //}
} }
/* /*
@ -1318,7 +1318,7 @@
} }
function removeIpWhitelist(ipaddr){ function removeIpWhitelist(ipaddr){
if (confirm("Confirm remove whitelist for " + ipaddr + " ?")){ //if (confirm("Confirm remove whitelist for " + ipaddr + " ?")){
$.cjax({ $.cjax({
url: "/api/whitelist/ip/remove", url: "/api/whitelist/ip/remove",
type: "POST", type: "POST",
@ -1335,7 +1335,7 @@
} }
}); });
} //}
} }
/* /*

View File

@ -209,6 +209,10 @@ body.darkTheme .ui.toggle.checkbox input:checked ~ label::before{
background-color: var(--buttom_toggle_active) !important; background-color: var(--buttom_toggle_active) !important;
} }
body.darkTheme .ui.checkbox:not(.toggle) input[type="checkbox"]{
opacity: 100% !important;
}
#sidemenuBtn{ #sidemenuBtn{
border: 1px solid var(--button_border_color) !important; border: 1px solid var(--button_border_color) !important;
} }