mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 12:53:57 +01:00
Fix: Issues cannot be created with labels (#622)
Signed-off-by: Kazuki Sawada <kazuki@6715.jp>
This commit is contained in:
parent
742f2c0301
commit
e5620f07a4
1 changed files with 3 additions and 3 deletions
|
@ -123,10 +123,10 @@ function initCommentForm() {
|
|||
}
|
||||
}
|
||||
|
||||
var labelIds = "";
|
||||
var labelIds = [];
|
||||
$(this).parent().find('.item').each(function () {
|
||||
if ($(this).hasClass('checked')) {
|
||||
labelIds += $(this).data('id') + ",";
|
||||
labelIds.push($(this).data('id'));
|
||||
$($(this).data('id-selector')).removeClass('hide');
|
||||
} else {
|
||||
$($(this).data('id-selector')).addClass('hide');
|
||||
|
@ -137,7 +137,7 @@ function initCommentForm() {
|
|||
} else {
|
||||
$noSelect.addClass('hide');
|
||||
}
|
||||
$($(this).parent().data('id')).val(labelIds);
|
||||
$($(this).parent().data('id')).val(labelIds.join(","));
|
||||
return false;
|
||||
});
|
||||
$labelMenu.find('.no-select.item').click(function () {
|
||||
|
|
Loading…
Reference in a new issue