mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00: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>
This commit is contained in:
		| @@ -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); | ||||
|   }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user