Ignore search queries that are all whitespace

// FREEBIE
pull/749/head
lilia 10 years ago
parent 73ab95b8a3
commit 2457d51fd4

@ -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);

Loading…
Cancel
Save