Browse Source

Fix: Issues cannot be created with labels (#622)

Signed-off-by: Kazuki Sawada <kazuki@6715.jp>
tags/v1.2.0-rc1
Kazuki Sawada Lunny Xiao 9 years ago
parent
commit
9be70c33fe
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      public/js/index.js

+ 3
- 3
public/js/index.js View File

@@ -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…
Cancel
Save