mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
fix lints
This commit is contained in:
parent
070feb4b66
commit
e63eee0c68
1 changed files with 7 additions and 8 deletions
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue