Ignore search queries that are all whitespace

// FREEBIE
This commit is contained in:
lilia 2015-11-20 17:08:10 -08:00
parent 73ab95b8a3
commit 2457d51fd4

View file

@ -30,7 +30,7 @@
},
filterContacts: function(e) {
var query = this.$input.val();
var query = this.$input.val().trim();
if (query.length) {
if (this.maybeNumber(query)) {
this.new_contact_view.model.set('id', query);