mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 08:18:50 +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
|
|
@ -15,10 +15,6 @@ Template.mainMenuTbl.helpers({
|
|||
});
|
||||
|
||||
Template.mainMenuTbl.events({
|
||||
// 'click #addMenu' (event) {
|
||||
// event.preventDefault();
|
||||
// $('#modalMenu').modal('open');
|
||||
// },
|
||||
'click li.collection-item' (event) {
|
||||
event.preventDefault();
|
||||
let sender = event.target;
|
||||
|
|
@ -35,6 +31,15 @@ Template.mainMenuTbl.events({
|
|||
FlowRouter.go('/menuitems');
|
||||
}, 100);
|
||||
}
|
||||
} else if (sender.localName == "i") {
|
||||
let menuId = this._id;
|
||||
Meteor.call("markMenu.complete", menuId, function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR: can't mark menu complete: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS marking menu complete.");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue