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