Update bindings.js

This commit is contained in:
2025-07-10 14:41:26 +08:00
committed by GitHub
parent bd35675d12
commit e95f760501

View File

@@ -150,7 +150,7 @@ export function bindModalEvents() {
.off("change.amily2.radio") .off("change.amily2.radio")
.on( .on(
"change.amily2.radio", "change.amily2.radio",
'input[type="radio"][name^="amily2_"]:not([name="amily2_icon_location"])', // 排除我们的特殊开关 'input[type="radio"][name^="amily2_"]:not([name="amily2_icon_location"])',
function () { function () {
if (!pluginAuthStatus.authorized) return; if (!pluginAuthStatus.authorized) return;
const key = snakeToCamel(this.name.replace("amily2_", "")); const key = snakeToCamel(this.name.replace("amily2_", ""));
@@ -161,7 +161,7 @@ export function bindModalEvents() {
container container
.off("change.amily2.text") .off("change.amily2.text")
.on("change.amily2.text", "#amily2_api_url, #amily2_api_key", function () { .on("change.amily2.text", "#amily2_api_url, #amily2_api_key, #amily2_optimization_target_tag", function () {
if (!pluginAuthStatus.authorized) return; if (!pluginAuthStatus.authorized) return;
const key = snakeToCamel(this.id.replace("amily2_", "")); const key = snakeToCamel(this.id.replace("amily2_", ""));
updateAndSaveSetting(key, this.value); updateAndSaveSetting(key, this.value);