Use space instead of comma when concatenating tags

This commit is contained in:
guerler
2017-03-03 14:11:01 -05:00
parent 83df8d5c96
commit 6b2f9be75a
5 changed files with 5 additions and 5 deletions
@@ -130,7 +130,7 @@ var View = Backbone.View.extend({
if ( this.model.get( 'searchable' ) ) {
this.data2 = [];
_.each( this.data, function( option, index ) {
var tags = _.reduce( option.tags, function( memo, tag ) { return memo + ',' + tag }, '');
var tags = _.reduce( option.tags, function( memo, tag ) { return memo + ' ' + tag }, '');
self.data2.push( { order: index, id: option.value, text: option.label, tags: tags } );
});
this.$select.data( 'select2' ) && this.$select.select2( 'destroy' );
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long