fix(webui): remove unnecessary elements when changing language #1095

Merged
Sainan merged 3 commits from AMelonInsideLemon/SpaceNinjaServer:doubling-options into main 2025-03-06 20:42:31 -08:00
Showing only changes of commit a2fac3635b - Show all commits

View File

@ -1147,10 +1147,7 @@ function doImport() {
}
function doChangeSupportedSyndicate() {
const uniqueName =
[...document.querySelectorAll("#datalist-Syndicates option")]
.find(option => option.value === document.getElementById("changeSyndicate").value)
?.getAttribute("data-key") || "";
const uniqueName = getKey(document.getElementById("changeSyndicate"));
revalidateAuthz(() => {
$.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {