mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
add milestone in new-issue page
This commit is contained in:
@@ -1441,7 +1441,7 @@ html, body {
|
||||
margin-left: .8em;
|
||||
}
|
||||
|
||||
#issue .assignee.dropdown-menu, #issue .assignee ul, #issue .milestone ul {
|
||||
#issue .assignee.dropdown-menu, #issue .assignee ul, #issue .milestone.dropdown-menu, #issue .milestone ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 300px;
|
||||
@@ -1514,8 +1514,14 @@ html, body {
|
||||
background-color: #77c64a;
|
||||
}
|
||||
|
||||
#issue .issue-bar .milestone .nav-tabs a {
|
||||
#issue .milestone .nav-tabs a {
|
||||
padding: 4px 8px;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
#milestone {
|
||||
margin-left: 24px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
/* wrapper and footer */
|
||||
|
@@ -571,7 +571,7 @@ function initIssue() {
|
||||
|
||||
// milestone
|
||||
|
||||
$('.issue-bar .dropdown-menu a[data-toggle="tab"]').on("click", function (e) {
|
||||
$('#issue .dropdown-menu a[data-toggle="tab"]').on("click", function (e) {
|
||||
e.stopPropagation();
|
||||
$(this).tab('show');
|
||||
return false;
|
||||
@@ -580,6 +580,7 @@ function initIssue() {
|
||||
var $m = $('.milestone');
|
||||
if ($m.data("milestone") > 0) {
|
||||
$('.clear-milestone').toggleShow();
|
||||
console.log("show");
|
||||
}
|
||||
$('.milestone', '#issue').on('click', 'li.milestone-item', function () {
|
||||
var id = $(this).data("id");
|
||||
@@ -600,8 +601,16 @@ function initIssue() {
|
||||
}
|
||||
})
|
||||
}
|
||||
return;
|
||||
}
|
||||
$('#milestone-id').val(id);
|
||||
if (id > 0) {
|
||||
$('.clear-milestone').toggleShow();
|
||||
$('#milestone').text($(this).find("strong").text())
|
||||
} else {
|
||||
$('.clear-milestone').toggleHide();
|
||||
$('#milestone').text($('#milestone').data("no-milestone"));
|
||||
}
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user