Commenting out console logging.

This commit is contained in:
Brian McGonagill 2025-07-23 19:44:24 -05:00
parent 4687f27011
commit d25ef56591
31 changed files with 87 additions and 87 deletions

View file

@ -31,9 +31,9 @@ Template.addProdToListModal.helpers({
},
productToChoose: function() {
let menuItemId = Session.get("menuItemId");
console.log("Menu Item Id received is: " + menuItemId);
// console.log("Menu Item Id received is: " + menuItemId);
let prodLinkLIst = MenuProdLinks.find({ menuItemId: menuItemId});
console.dir(prodLinkLIst);
// console.dir(prodLinkLIst);
if (typeof prodLinkLIst != 'undefined' && prodLinkLIst != "" && prodLinkLIst != null) {
return prodLinkLIst;
}
@ -44,9 +44,9 @@ Template.addProdToListModal.events({
'click .productListing' (event) {
let itemId = event.currentTarget.id;
let selected = Session.get("itemsSelected");
console.log("Item clicked: " + itemId);
// console.log("Item clicked: " + itemId);
selected.push(itemId);
console.dir(selected);
// console.dir(selected);
Session.set("itemsSelected", selected);
},
'click #saveProdsToList' (event) {
@ -56,7 +56,7 @@ Template.addProdToListModal.events({
const addItemsFromMenu = async() => {
let result = await Meteor.callAsync('add.itemsFromMenuItem', selectedItems, listId);
if (!result) {
console.log(" ERROR adding menu components to list: " + err);
// console.log(" ERROR adding menu components to list: " + err);
} else {
showSnackbar("Items Added to List!", "green");
}

View file

@ -89,7 +89,7 @@ Template.menuItemsForm.events({
const addMenuItem = async() => {
let result = await Meteor.callAsync('add.menuItem', menuItem);
if (!result) {
console.log(" ERROR adding menu item: " + err);
// console.log(" ERROR adding menu item: " + err);
} else {
// console.log(" SUCCESS adding menu item.");
return result;
@ -98,13 +98,13 @@ Template.menuItemsForm.events({
let addedItem = addMenuItem();
if (!addedItem) {
console.log("Item was not added.");
// console.log("Item was not added.");
} else {
// now add this item to the menu
const addToMenu = async() => {
let result2 = await Meteor.callAsync('addto.Menu', menuId, menuItem, addedItem, dateSrv);
if (!result2) {
console.log(" ERROR adding menuitem to menu: " + error);
// console.log(" ERROR adding menuitem to menu: " + error);
} else {
$("#menuItemInp").val("");
$("#dateServed").val("");
@ -126,7 +126,7 @@ Template.menuItemsForm.events({
const addToMenu = async() => {
let result = await Meteor.callAsync('addto.Menu', menuId, menuItem, menuItemId, dateSrv, isLinked);
if (!result) {
console.log(" ERROR adding menuitem to menu: " + error);
// console.log(" ERROR adding menuitem to menu: " + error);
} else {
// console.log("Added item to menu - no problem.");
$("#menuItemInp").val("");
@ -149,7 +149,7 @@ Template.menuItemsForm.events({
const shiftDay = async() => {
let result = await Meteor.callAsync('shiftDate', menuItemId, momentAddDay);
if (!result) {
console.log(" ERROR shifting meal days: " + err);
// console.log(" ERROR shifting meal days: " + err);
} else {
showSnackbar("Items Shifted Out by 1 Calendar Day", "green");
}

View file

@ -53,7 +53,7 @@ Template.menuItemsTbl.events({
'click .deleteMenuItem' (event) {
event.preventDefault();
let theseIds = Session.get("menuId") + "_" + this.menuItemId;
console.log("These Ids: " + theseIds);
// console.log("These Ids: " + theseIds);
Session.set("deleteId", theseIds);
Session.set("method", "delete.itemFromMenu");
Session.set("item", this.menuItemName);
@ -63,7 +63,7 @@ Template.menuItemsTbl.events({
event.preventDefault();
Session.set("menuItemId", this.menuItemId);
Session.set("menuItemName", this.menuItemName);
console.log("menu item name = " + this.menuItemName);
// console.log("menu item name = " + this.menuItemName);
},
'click .addProdsToList' (event) {
event.preventDefault();

View file

@ -53,7 +53,7 @@ Template.modalLinkProducts.events({
const addMenuProdLinks = async() => {
let result = await Meteor.callAsync("add.menuProdLinks", menuItemId, menuItemName, linkObjArray);
if (!result) {
console.log(" ERROR adding product links to this menu item: " + err);
// console.log(" ERROR adding product links to this menu item: " + err);
} else {
updMenuItemLinks();
}
@ -63,7 +63,7 @@ Template.modalLinkProducts.events({
const updMenuItemLinks = async() => {
let result = await Meteor.callAsync('update.menuItemLinked', menuItemId, true);
if (!result) {
console.log(" ERROR adding link to menu item: " + err);
// console.log(" ERROR adding link to menu item: " + err);
} else {
linkInMenu();
}
@ -72,7 +72,7 @@ Template.modalLinkProducts.events({
const linkInMenu = async() => {
let result = await Meteor.callAsync('link.inMenu', menuItemId, true);
if (!result) {
console.log(" ERROR adding link to menu sub-item: " + error);
// console.log(" ERROR adding link to menu sub-item: " + error);
} else {
showSnackbar("Products added to Menu Item successfully!", "green");
}