mirror of
https://github.com/go-gitea/gitea
synced 2024-11-15 06:34:25 +00:00
24b83ff63e
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 = '';
|
|
});
|
|
}
|