mirror of
https://github.com/go-gitea/gitea
synced 2024-12-05 04:08:09 +01:00
5 lines
276 B
TypeScript
5 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);
|
|
});
|
|
}
|