mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Fix 2 bugs, fix update functions for new changes.
This commit is contained in:
parent
153e70c70c
commit
6a771a6f11
5 changed files with 128 additions and 49 deletions
|
|
@ -117,11 +117,12 @@ Template.listItemsForm.events({
|
|||
}
|
||||
},
|
||||
'click #filterOn' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("filtering", true);
|
||||
},
|
||||
'click #filterOff' (event) {
|
||||
event.preventDefault();
|
||||
// clear filter field
|
||||
Session.set("searchVal", "");
|
||||
$("#searchListItems").val("");
|
||||
Session.set("filtering", false);
|
||||
}
|
||||
});
|
||||
|
|
@ -130,4 +131,4 @@ getDataList = function(listItemInfo) {
|
|||
let listItemObjArray = [];
|
||||
listItemObjArray = listItemInfo.map(info => ({ id: info._id, text: info.prodName, store: info.prodStore }))
|
||||
Session.set("findListItems", listItemObjArray);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue