fix lints

This commit is contained in:
guillaume 2019-04-19 16:39:14 +02:00
parent 070feb4b66
commit e63eee0c68

View file

@ -30,17 +30,17 @@ BlazeComponent.extendComponent({
}, },
events() { events() {
return [{ return [{
'click #searchButton'(event) { 'click #searchButton'() {
this.filterPeople(event); this.filterPeople();
}, },
'keydown #searchInput'(event) { 'keydown #searchInput'(event) {
if (event.keyCode === 13 && !event.shiftKey) { if (event.keyCode === 13 && !event.shiftKey) {
this.filterPeople(event); this.filterPeople();
} }
} },
}]; }];
}, },
filterPeople(event) { filterPeople() {
const value = $('#searchInput').first().val(); const value = $('#searchInput').first().val();
if (value === '') { if (value === '') {
this.findUsersOptions.set({}); this.findUsersOptions.set({});
@ -51,7 +51,7 @@ BlazeComponent.extendComponent({
{ username: regex }, { username: regex },
{ 'profile.fullname': regex }, { 'profile.fullname': regex },
{ 'emails.address': regex }, { 'emails.address': regex },
] ],
}); });
} }
}, },
@ -86,8 +86,7 @@ BlazeComponent.extendComponent({
}, },
peopleNumber() { peopleNumber() {
return this.number.get(); return this.number.get();
} },
}).register('people'); }).register('people');
Template.peopleRow.helpers({ Template.peopleRow.helpers({