mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
issue assignee ui
This commit is contained in:
@@ -1441,6 +1441,28 @@ html, body {
|
||||
margin-left: .8em;
|
||||
}
|
||||
|
||||
#issue .assignee,#issue .assignee ul{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
#issue .assignee li{
|
||||
padding: 4px 12px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#issue .assignee li:hover{
|
||||
background-color: #e8f0ff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#issue .assignee li img{
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
/* wrapper and footer */
|
||||
|
||||
#wrapper {
|
||||
|
@@ -532,7 +532,20 @@ function initIssue() {
|
||||
$('.issue-write a[data-toggle]').on("click", function () {
|
||||
$('.issue-preview-content').html("loading...");
|
||||
});
|
||||
}())
|
||||
}());
|
||||
|
||||
// assignee
|
||||
$('.assignee', '#issue').on('click', 'li', function () {
|
||||
var uid = $(this).data("uid");
|
||||
$('#assignee').val(uid);
|
||||
if (uid > 0) {
|
||||
$('.clear-assignee').toggleShow();
|
||||
$('#assigned').text($(this).find("strong").text())
|
||||
} else {
|
||||
$('.clear-assignee').toggleHide();
|
||||
$('#assigned').text($('#assigned').data("no-assigned"));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -580,7 +593,7 @@ function initRepoSetting() {
|
||||
});
|
||||
$this.next().toggleShow();
|
||||
$this.next().find('ul').html(html);
|
||||
}else{
|
||||
} else {
|
||||
$this.next().toggleHide();
|
||||
}
|
||||
}
|
||||
@@ -589,7 +602,7 @@ function initRepoSetting() {
|
||||
if (!$(this).val()) {
|
||||
$(this).next().toggleHide();
|
||||
}
|
||||
}).next().on("click",'li',function(){
|
||||
}).next().on("click", 'li', function () {
|
||||
$('#repo-collaborator').val($(this).text());
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user