mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 02:27:20 +00:00
Refactor repo legacy (#32404)
Only move code, no unnecessary logic change. (There are many problems in old code, but changing them is not in this PR's scope) Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
11
web_src/js/features/repo-milestone.ts
Normal file
11
web_src/js/features/repo-milestone.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import $ from 'jquery';
|
||||
|
||||
export function initRepoMilestone() {
|
||||
// Milestones
|
||||
if ($('.repository.new.milestone').length > 0) {
|
||||
$('#clear-date').on('click', () => {
|
||||
$('#deadline').val('');
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user