fix(webui): remove unnecessary elements when changing language #1095
@ -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