mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Commenting out console logging.
This commit is contained in:
parent
4687f27011
commit
d25ef56591
31 changed files with 87 additions and 87 deletions
|
|
@ -30,9 +30,9 @@ Template.addMenuModal.events({
|
|||
const addMenu = async() => {
|
||||
let result = await Meteor.callAsync("add.menu", menuName);
|
||||
if (!result) {
|
||||
console.log(" ERROR adding menu: " + err);
|
||||
// console.log(" ERROR adding menu: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS adding menu.");
|
||||
// console.log(" SUCCESS adding menu.");
|
||||
$("#menuNameInp").val("");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ Template.mainMenuTbl.events({
|
|||
if (sender.localName == "li") {
|
||||
let menuId = event.currentTarget.id;
|
||||
if (menuId == "addMenu") {
|
||||
console.log("add menu clicked");
|
||||
// console.log("add menu clicked");
|
||||
} else {
|
||||
console.log("menuId is: " + menuId);
|
||||
// console.log("menuId is: " + menuId);
|
||||
const addUserLast = async() => {
|
||||
let result = await Meteor.callAsync('add.userLast', "Menu", menuId);
|
||||
if (!result) {
|
||||
console.log(" ERROR writing last menu viewed by user to db.");
|
||||
// console.log(" ERROR writing last menu viewed by user to db.");
|
||||
} else {
|
||||
Session.set("menuId", menuId);
|
||||
Meteor.setTimeout(function() {
|
||||
|
|
@ -48,9 +48,9 @@ Template.mainMenuTbl.events({
|
|||
const makrMenuComp = async() => {
|
||||
let result = await Meteor.callAsync("markMenu.complete", menuId);
|
||||
if (!result) {
|
||||
console.log(" ERROR: can't mark menu complete.");
|
||||
// console.log(" ERROR: can't mark menu complete.");
|
||||
} else {
|
||||
console.log(" SUCCESS marking menu complete.");
|
||||
// console.log(" SUCCESS marking menu complete.");
|
||||
setAllMade();
|
||||
}
|
||||
}
|
||||
|
|
@ -59,9 +59,9 @@ Template.mainMenuTbl.events({
|
|||
const setAllMade = async() => {
|
||||
let result = await Meteor.callAsync('setAllMade.menuItem', menuId);
|
||||
if (!result) {
|
||||
console.log(" ERROR: cannot set all items as made.");
|
||||
// console.log(" ERROR: cannot set all items as made.");
|
||||
} else {
|
||||
console.log(" SUCCESS setting all items made.");
|
||||
// console.log(" SUCCESS setting all items made.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue