mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-15 09:27:46 +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>
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 = '';
|
|
});
|
|
}
|