From 18c172c08845631d59d8fb27bca7798d69aa4890 Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Sat, 22 Oct 2016 17:23:18 -0400 Subject: [PATCH] classes autocomplete --- hourglass/client/profile/profile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 738daee..e0a731f 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -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}]}; } }]