use getKey in doChangeSupportedSyndicate
This commit is contained in:
parent
83031061d2
commit
a2fac3635b
@ -1147,10 +1147,7 @@ function doImport() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function doChangeSupportedSyndicate() {
|
function doChangeSupportedSyndicate() {
|
||||||
const uniqueName =
|
const uniqueName = getKey(document.getElementById("changeSyndicate"));
|
||||||
[...document.querySelectorAll("#datalist-Syndicates option")]
|
|
||||||
.find(option => option.value === document.getElementById("changeSyndicate").value)
|
|
||||||
?.getAttribute("data-key") || "";
|
|
||||||
|
|
||||||
revalidateAuthz(() => {
|
revalidateAuthz(() => {
|
||||||
$.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {
|
$.get("/api/setSupportedSyndicate.php?" + window.authz + "&syndicate=" + uniqueName).done(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user