Don't show left groups in list of all contacts

// FREEBIE
This commit is contained in:
lilia 2016-02-22 10:14:12 -08:00
parent ef9559d844
commit cc0b8e835a
2 changed files with 44 additions and 1 deletions

View file

@ -125,7 +125,11 @@
if (this.showAllContacts) {
this.typeahead.fetchAlphabetical().then(function() {
if (this.typeahead.length > 0) {
this.typeahead_view.collection.reset(this.typeahead.models);
this.typeahead_view.collection.reset(
this.typeahead.filter(function(m) {
return m.isSearchable();
})
);
} else {
this.showHints();
}