classes autocomplete
This commit is contained in:
parent
fae6597284
commit
18c172c088
@ -43,12 +43,14 @@ Template.profile.helpers({
|
||||
rules: [{
|
||||
token: '',
|
||||
collection: classes,
|
||||
field: 'name',
|
||||
template: Template.classDisplay,
|
||||
filter: {
|
||||
privacy: false,
|
||||
status: true
|
||||
},
|
||||
selector: (match) => {
|
||||
match = new RegExp(match, 'i');
|
||||
return {or: [{'name': match}, {'teacher': match}, {'hour': match}]};
|
||||
}
|
||||
}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user