code.gitea.io/gitea@v1.22.3/web_src/js/features/common-organization.js (about) 1 import {initCompLabelEdit} from './comp/LabelEdit.js'; 2 import {toggleElem} from '../utils/dom.js'; 3 4 export function initCommonOrganization() { 5 if (!document.querySelectorAll('.organization').length) { 6 return; 7 } 8 9 document.querySelector('.organization.settings.options #org_name')?.addEventListener('input', function () { 10 const nameChanged = this.value.toLowerCase() !== this.getAttribute('data-org-name').toLowerCase(); 11 toggleElem('#org-name-change-prompt', nameChanged); 12 }); 13 14 // Labels 15 initCompLabelEdit('.organization.settings.labels'); 16 }