CollectionSearch now fires if the field is not empty

This commit is contained in:
Felipe Martín 2015-09-22 19:54:03 +02:00
parent 331bdb1a4b
commit e4baaed1dd
1 changed files with 53 additions and 48 deletions

View File

@ -22,6 +22,11 @@
// Focus search input
this.$searchInput.focus();
// Trigger search
if (this.$searchInput.value !== '') {
this.search(this.$searchInput.value);
}
};
CollectionSearchComponent.prototype.showItem = function(item) {