16 lines · 564 B · JavaScript
RawDownload
import {initCompLabelEdit} from './comp/LabelEdit.js';import {toggleElem} from '../utils/dom.js'; export function initCommonOrganization() {  if (!document.querySelectorAll('.organization').length) {    return;  }   document.querySelector('.organization.settings.options #org_name')?.addEventListener('input', function () {    const nameChanged = this.value.toLowerCase() !== this.getAttribute('data-org-name').toLowerCase();    toggleElem('#org-name-change-prompt', nameChanged);  });   // Labels  initCompLabelEdit('.organization.settings.labels');}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t