mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Fixed modal close issue on non filled field. Added mark complte.
This commit is contained in:
parent
075dd57996
commit
81f29952e2
5 changed files with 23 additions and 12 deletions
|
|
@ -17,5 +17,15 @@ Template.menuItemsTbl.helpers({
|
|||
});
|
||||
|
||||
Template.menuItemsTbl.events({
|
||||
|
||||
'click .deleteMenuItem' (event) {
|
||||
event.preventDefault();
|
||||
let menuItemId = this._id;
|
||||
Meteor.call('delete.menuItem', menuItemId, function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR: can't delte menu item: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS deleting menu item.");
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue