mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Added typeahead through materialize
This commit is contained in:
parent
909030ea0f
commit
cba5026ee4
3 changed files with 39 additions and 14 deletions
|
|
@ -37,6 +37,14 @@ Meteor.publish("myProducts", function() {
|
|||
}
|
||||
});
|
||||
|
||||
Meteor.publish("listProducts", function(itemNameListing) {
|
||||
try {
|
||||
return Products.find({ itemName: {$regex: itemNameListing + '.*', $options: 'i'}}, { limit: 5 });
|
||||
} catch (error) {
|
||||
console.log(" ERROR pulling items by filtered item name: " + error);
|
||||
}
|
||||
});
|
||||
|
||||
Meteor.publish("myLists", function() {
|
||||
try {
|
||||
return Lists.find( { $or: [ { listOwner: this.userId, listComplete: false }, { listShared: true, listComplete: false } ] } );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue