mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updating framework to meteor 3 and later
This commit is contained in:
parent
717994508a
commit
cca29bc591
58 changed files with 2332 additions and 1611 deletions
|
|
@ -22,13 +22,13 @@ Template.listItemsTbl.helpers({
|
|||
let showRecvd = Session.get("showReceivedItems");
|
||||
let searchVal = Session.get("searchVal");
|
||||
if (showRecvd == false) {
|
||||
if (typeof searchVal == 'undefined' || searchVal.length === 0) {
|
||||
if (!searchVal) {
|
||||
return ListItems.find({ itemReceived: false });
|
||||
} else {
|
||||
return ListItems.find({ itemReceived: false, itemName: { $regex: searchVal + '.*', $options: 'i' } });
|
||||
}
|
||||
} else {
|
||||
if (typeof searchVal == 'undefined' || searchVal.length == 0) {
|
||||
if (!searchVal) {
|
||||
return ListItems.find({});
|
||||
} else {
|
||||
return ListItems.find({ itemName: { $regex: searchVal + '.*', $options: 'i' } });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue