mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-26 17:08:25 +00:00 
			
		
		
		
	Use zero instead of 9999-12-31 for deadline Fix #32291 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
		
			
				
	
	
		
			10 lines
		
	
	
		
			335 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			335 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export function initRepoMilestone() {
 | |
|   const page = document.querySelector('.repository.new.milestone');
 | |
|   if (!page) return;
 | |
| 
 | |
|   const deadline = page.querySelector<HTMLInputElement>('form input[name=deadline]');
 | |
|   document.querySelector('#milestone-clear-deadline').addEventListener('click', () => {
 | |
|     deadline.value = '';
 | |
|   });
 | |
| }
 |