Omit left groups from search
Unless they contain messages. // FREEBIE
This commit is contained in:
parent
010297f4c5
commit
7e8ce5eb54
3 changed files with 14 additions and 3 deletions
|
@ -67,7 +67,11 @@
|
|||
}
|
||||
this.pending = this.pending.then(function() {
|
||||
return this.typeahead.search(query).then(function() {
|
||||
this.typeahead_view.collection.reset(this.typeahead.models);
|
||||
this.typeahead_view.collection.reset(
|
||||
this.typeahead.filter(function(m) {
|
||||
return m.isSearchable();
|
||||
})
|
||||
);
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
this.trigger('show');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue