Add possibility to record branch or tag information in an issue (#780)
This commit is contained in:
parent
174255e74e
commit
da230a2872
9 changed files with 78 additions and 0 deletions
|
@ -86,6 +86,22 @@ function initEditForm() {
|
|||
initEditDiffTab($('.edit.form'));
|
||||
}
|
||||
|
||||
function initBranchSelector() {
|
||||
var $selectBranch = $('.ui.select-branch')
|
||||
var $branchMenu = $selectBranch.find('.reference-list-menu');
|
||||
$branchMenu.find('.item:not(.no-select)').click(function () {
|
||||
var selectedValue = $(this).data('id');
|
||||
$($(this).data('id-selector')).val(selectedValue);
|
||||
$selectBranch.find('.ui .branch-name').text(selectedValue);
|
||||
});
|
||||
$selectBranch.find('.reference.column').click(function () {
|
||||
$selectBranch.find('.scrolling.reference-list-menu').css('display', 'none');
|
||||
$selectBranch.find('.reference .text').removeClass('black');
|
||||
$($(this).data('target')).css('display', 'block');
|
||||
$(this).find('.text').addClass('black');
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
function updateIssuesMeta(url, action, issueIds, elementId, afterSuccess) {
|
||||
$.ajax({
|
||||
|
@ -106,6 +122,7 @@ function initCommentForm() {
|
|||
return
|
||||
}
|
||||
|
||||
initBranchSelector();
|
||||
initCommentPreviewTab($('.comment.form'));
|
||||
|
||||
// Labels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue