Initial commit, source code of Gitea 1.23.1
This commit is contained in:
7
web_src/js/features/oauth2-settings.ts
Normal file
7
web_src/js/features/oauth2-settings.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function initOAuth2SettingsDisableCheckbox() {
|
||||
for (const el of document.querySelectorAll('.disable-setting')) {
|
||||
el.addEventListener('change', (e: Event & {target: HTMLInputElement}) => {
|
||||
document.querySelector(e.target.getAttribute('data-target')).classList.toggle('disabled', e.target.checked);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user