File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ function initCommentForm() {
123
123
}
124
124
}
125
125
126
- var labelIds = "" ;
126
+ var labelIds = [ ] ;
127
127
$ ( this ) . parent ( ) . find ( '.item' ) . each ( function ( ) {
128
128
if ( $ ( this ) . hasClass ( 'checked' ) ) {
129
- labelIds += $ ( this ) . data ( 'id' ) + "," ;
129
+ labelIds . push ( $ ( this ) . data ( 'id' ) ) ;
130
130
$ ( $ ( this ) . data ( 'id-selector' ) ) . removeClass ( 'hide' ) ;
131
131
} else {
132
132
$ ( $ ( this ) . data ( 'id-selector' ) ) . addClass ( 'hide' ) ;
@@ -137,7 +137,7 @@ function initCommentForm() {
137
137
} else {
138
138
$noSelect . addClass ( 'hide' ) ;
139
139
}
140
- $ ( $ ( this ) . parent ( ) . data ( 'id' ) ) . val ( labelIds ) ;
140
+ $ ( $ ( this ) . parent ( ) . data ( 'id' ) ) . val ( labelIds . join ( "," ) ) ;
141
141
return false ;
142
142
} ) ;
143
143
$labelMenu . find ( '.no-select.item' ) . click ( function ( ) {
You can’t perform that action at this time.
0 commit comments