mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Fix input box value access on repo create (#12299)
Followup to https://github.com/go-gitea/gitea/pull/12202
This commit is contained in:
		| @@ -758,8 +758,8 @@ async function initRepository() { | ||||
|   // Repo Creation | ||||
|   if ($('.repository.new.repo').length > 0) { | ||||
|     $('input[name="gitignores"], input[name="license"]').on('change', () => { | ||||
|       const gitignores = $('input[name="gitignores"]').prop('checked'); | ||||
|       const license = $('input[name="license"]').prop('checked'); | ||||
|       const gitignores = $('input[name="gitignores"]').val(); | ||||
|       const license = $('input[name="license"]').val(); | ||||
|       if (gitignores || license) { | ||||
|         $('input[name="auto_init"]').prop('checked', true); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user