mirror of
https://github.com/go-gitea/gitea
synced 2024-11-28 13:43:16 +01: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>
9 lines
335 B
TypeScript
9 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 = '';
|
|
});
|
|
}
|