-
-
+ {{> deleteConfirmationModal}}
\ No newline at end of file
diff --git a/client/AdminMgmt/CategoryMgMt/catMgmtTbl.js b/client/AdminMgmt/CategoryMgMt/catMgmtTbl.js
index 352c92e..0d82838 100644
--- a/client/AdminMgmt/CategoryMgMt/catMgmtTbl.js
+++ b/client/AdminMgmt/CategoryMgMt/catMgmtTbl.js
@@ -19,13 +19,11 @@ Template.catMgmtTbl.helpers({
Template.catMgmtTbl.events({
'click .deleteCategory' (event) {
event.preventDefault();
- Meteor.call('delete.category', this._id, function(err, result) {
- if (err) {
- console.log(" ERROR deleting category: " + err);
- } else {
- console.log(" SUCCESS deleting the category.");
- }
- });
+ Session.set("deleteId", this._id);
+ Session.set("method", "delete.category");
+ Session.set("item", this.categoryName);
+ Session.set("view", "Categories");
+ $('#modalDelete').modal('open');
},
'click .editCategory' (event) {
event.preventDefault();
diff --git a/client/AdminMgmt/ListMgmt/listMgmtForm.js b/client/AdminMgmt/ListMgmt/listMgmtForm.js
index d15c1a2..ece9583 100644
--- a/client/AdminMgmt/ListMgmt/listMgmtForm.js
+++ b/client/AdminMgmt/ListMgmt/listMgmtForm.js
@@ -30,9 +30,9 @@ Template.listMgmtForm.events({
} else {
Meteor.call('add.list', listName, shared, function(err, result) {
if (err) {
- console.log(" ERROR adding list name: " + err);
+ // console.log(" ERROR adding list name: " + err);
} else {
- console.log(" SUCCESS adding list name.");
+ // console.log(" SUCCESS adding list name.");
$("#listNameInp").val("");
$("#isShared").prop("checked", false);
}
@@ -51,9 +51,9 @@ Template.listMgmtForm.events({
} else {
Meteor.call('edit.list', listId, listName, shared, function(err, result) {
if (err) {
- console.log(" ERROR editing list name: " + err);
+ // console.log(" ERROR editing list name: " + err);
} else {
- console.log(" SUCCESS editing list name.");
+ // console.log(" SUCCESS editing list name.");
$("#listNameInp").val("");
$("#isShared").prop("checked", false);
Session.set("listNameEditMode", false);
@@ -75,9 +75,9 @@ Template.listMgmtForm.events({
if (editMode == false) {
Meteor.call('add.list', listName, shared, function(err, result) {
if (err) {
- console.log(" ERROR adding list name: " + err);
+ // console.log(" ERROR adding list name: " + err);
} else {
- console.log(" SUCCESS adding list name.");
+ // console.log(" SUCCESS adding list name.");
$("#listNameInp").val("");
$("#isShared").prop("checked", false);
}
@@ -85,9 +85,9 @@ Template.listMgmtForm.events({
} else {
Meteor.call('edit.list', listId, listName, shared, function(err, result) {
if (err) {
- console.log(" ERROR editing list name: " + err);
+ // console.log(" ERROR editing list name: " + err);
} else {
- console.log(" SUCCESS editing list name.");
+ // console.log(" SUCCESS editing list name.");
$("#listNameInp").val("");
$("#isShared").prop("checked", false);
Session.set("listNameEditMode", false);
diff --git a/client/AdminMgmt/ListMgmt/listMgmtTbl.html b/client/AdminMgmt/ListMgmt/listMgmtTbl.html
index 7724192..038c94d 100644
--- a/client/AdminMgmt/ListMgmt/listMgmtTbl.html
+++ b/client/AdminMgmt/ListMgmt/listMgmtTbl.html
@@ -13,4 +13,5 @@