use getKey in doChangeSupportedSyndicate
This commit is contained in:
parent
83031061d2
commit
a2fac3635b
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user