aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorKazuki Sawada <kazuki@6715.jp>2017-01-10 22:57:03 +0900
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-10 21:57:03 +0800
commite5620f07a4b4694737a65699f61b0d27e79d0718 (patch)
tree20c921cef5b83c521d7b388568ffc1f3ab9f2047 /public/js
parent742f2c0301900c35636eb8b95650f44d59fcfe50 (diff)
downloadgitea-e5620f07a4b4694737a65699f61b0d27e79d0718.tar.gz
gitea-e5620f07a4b4694737a65699f61b0d27e79d0718.zip
Fix: Issues cannot be created with labels (#622)
Signed-off-by: Kazuki Sawada <kazuki@6715.jp>
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 61b774b1fe..a3ff42705a 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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 () {