Skip to content

Commit e5620f0

Browse files
kazlunny
authored andcommitted
Fix: Issues cannot be created with labels (#622)
Signed-off-by: Kazuki Sawada <[email protected]>
1 parent 742f2c0 commit e5620f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ function initCommentForm() {
123123
}
124124
}
125125

126-
var labelIds = "";
126+
var labelIds = [];
127127
$(this).parent().find('.item').each(function () {
128128
if ($(this).hasClass('checked')) {
129-
labelIds += $(this).data('id') + ",";
129+
labelIds.push($(this).data('id'));
130130
$($(this).data('id-selector')).removeClass('hide');
131131
} else {
132132
$($(this).data('id-selector')).addClass('hide');
@@ -137,7 +137,7 @@ function initCommentForm() {
137137
} else {
138138
$noSelect.addClass('hide');
139139
}
140-
$($(this).parent().data('id')).val(labelIds);
140+
$($(this).parent().data('id')).val(labelIds.join(","));
141141
return false;
142142
});
143143
$labelMenu.find('.no-select.item').click(function () {

0 commit comments

Comments
 (0)