1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-11 04:34:25 +00:00
gitea/web_src/js/features/oauth2-settings.ts

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);
});
}