mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			276 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			276 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export function initOAuth2SettingsDisableCheckbox() {
 | |
|   for (const e of document.querySelectorAll('.disable-setting')) e.addEventListener('change', ({target}) => {
 | |
|     document.querySelector(e.getAttribute('data-target')).classList.toggle('disabled', target.checked);
 | |
|   });
 | |
| }
 |