mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-03 06:50:11 +00:00
config: make sure recaptcha is hidden when disabled
This commit is contained in:
parent
3fa4b01115
commit
b5c80e9d27
@ -341,6 +341,7 @@
|
||||
"required": false,
|
||||
"requires_restart": true,
|
||||
"type": "bool",
|
||||
"depends_true": "enabled",
|
||||
"value": false,
|
||||
"description": "More reliable, but requires some setup. See jfa-go wiki for more info."
|
||||
},
|
||||
|
@ -56,6 +56,7 @@ export const loadLangSelector = (page: string) => {
|
||||
localStorage.setItem("timefmt", fmt);
|
||||
};
|
||||
const t12 = document.getElementById("lang-12h") as HTMLInputElement;
|
||||
if (typeof(t12) !== "undefined" && t12 != null) {
|
||||
t12.onchange = () => setTimefmt("12h");
|
||||
const t24 = document.getElementById("lang-24h") as HTMLInputElement;
|
||||
t24.onchange = () => setTimefmt("24h");
|
||||
@ -69,6 +70,7 @@ export const loadLangSelector = (page: string) => {
|
||||
t12.checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
let queryString = new URLSearchParams(window.location.search);
|
||||
if (queryString.has("lang")) queryString.delete("lang");
|
||||
_get("/lang/" + page, null, (req: XMLHttpRequest) => {
|
||||
|
Loading…
Reference in New Issue
Block a user