Ignore search queries that are all whitespace
// FREEBIE
This commit is contained in:
parent
73ab95b8a3
commit
2457d51fd4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue