mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 08:18:50 +00:00
Added a delete confirmation modal to all views.
This commit is contained in:
parent
4d9d2acff6
commit
29ddc544e5
27 changed files with 117 additions and 127 deletions
|
|
@ -19,13 +19,11 @@ Template.storeMgmtTbl.helpers({
|
|||
Template.storeMgmtTbl.events({
|
||||
'click .deleteStore' (event) {
|
||||
event.preventDefault();
|
||||
Meteor.call('delete.store', this._id, function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR deleting store: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS deleting the store.");
|
||||
}
|
||||
});
|
||||
Session.set("deleteId", this._id);
|
||||
Session.set("method", "delete.store");
|
||||
Session.set("item", this.storeName);
|
||||
Session.set("view", "Stores");
|
||||
$('#modalDelete').modal('open');
|
||||
},
|
||||
'click .editStore' (event) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue