feat(webui): automatically commit toggle changes #2198
@ -1764,7 +1764,7 @@ const uiConfigs = [...$("#server-settings input[id]")].map(x => x.id);
 | 
				
			|||||||
for (const id of uiConfigs) {
 | 
					for (const id of uiConfigs) {
 | 
				
			||||||
    const elm = document.getElementById(id);
 | 
					    const elm = document.getElementById(id);
 | 
				
			||||||
    if (elm.type == "checkbox") {
 | 
					    if (elm.type == "checkbox") {
 | 
				
			||||||
        elm.onchange = function() {
 | 
					        elm.onchange = function () {
 | 
				
			||||||
            $.post({
 | 
					            $.post({
 | 
				
			||||||
                url: "/custom/config?" + window.authz,
 | 
					                url: "/custom/config?" + window.authz,
 | 
				
			||||||
                contentType: "application/json",
 | 
					                contentType: "application/json",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user