mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 04:11:18 +01:00
Fix initCompLabelEdit
not being called (#29198)
Fix broken `if` from https://github.com/go-gitea/gitea/pull/29195 Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 2d8756a9607ee6029ad7a44985e9751988d5fdaa)
This commit is contained in:
parent
6a4b83fb9d
commit
1d4ce531fd
1 changed files with 1 additions and 3 deletions
|
@ -6,9 +6,7 @@ export function initCommonOrganization() {
|
|||
return;
|
||||
}
|
||||
|
||||
const orgNameInput = document.querySelector('.organization.settings.options #org_name');
|
||||
if (!orgNameInput) return;
|
||||
orgNameInput.addEventListener('input', function () {
|
||||
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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue