mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-30 19:08:37 +00:00 
			
		
		
		
	Remove jQuery class from the commit button (#30178)
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the commit button disabled toggling functionality and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -147,8 +147,8 @@ export function initRepoEditor() { | ||||
|       silent: true, | ||||
|       dirtyClass: dirtyFileClass, | ||||
|       fieldSelector: ':input:not(.commit-form-wrapper :input)', | ||||
|       change() { | ||||
|         const dirty = $(this).hasClass(dirtyFileClass); | ||||
|       change($form) { | ||||
|         const dirty = $form[0]?.classList.contains(dirtyFileClass); | ||||
|         commitButton.disabled = !dirty; | ||||
|       }, | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user