mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +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.locMgmtTbl.helpers({
|
|||
Template.locMgmtTbl.events({
|
||||
'click .deleteLocation' (event) {
|
||||
event.preventDefault();
|
||||
Meteor.call('delete.location', this._id, function(err, result) {
|
||||
if (err) {
|
||||
console.log(" ERROR deleting location: " + err);
|
||||
} else {
|
||||
console.log(" SUCCESS deleting the location.");
|
||||
}
|
||||
});
|
||||
Session.set("deleteId", this._id);
|
||||
Session.set("method", "delete.location");
|
||||
Session.set("item", this.locationName);
|
||||
Session.set("view", "Locations");
|
||||
$('#modalDelete').modal('open');
|
||||
},
|
||||
'click .editLocation' (event) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue