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:
wxiaoguang 2024-11-03 19:00:12 +08:00 committed by GitHub
parent 259811617b
commit f2a6df03d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 383 additions and 362 deletions

View 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;
});
}
}