Skip to content

Commit

Permalink
Fix: Issues cannot be created with labels (#622)
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuki Sawada <kazuki@6715.jp>
  • Loading branch information
kaz authored and lunny committed Jan 10, 2017
1 parent 742f2c0 commit e5620f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 () {
Expand Down

0 comments on commit e5620f0

Please sign in to comment.