mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Many chcanges, but version 0.1.0 is ready to be cut.
This commit is contained in:
parent
42643a37f5
commit
6e37ae8c74
46 changed files with 1038 additions and 273 deletions
|
|
@ -5,7 +5,9 @@ Template.locMgmtTbl.onCreated(function() {
|
|||
});
|
||||
|
||||
Template.locMgmtTbl.onRendered(function() {
|
||||
|
||||
Meteor.setTimeout(function() {
|
||||
$('.tooltipped').tooltip();
|
||||
}, 150);
|
||||
});
|
||||
|
||||
Template.locMgmtTbl.helpers({
|
||||
|
|
@ -14,6 +16,22 @@ Template.locMgmtTbl.helpers({
|
|||
}
|
||||
});
|
||||
|
||||
Template.locMgmtTbl.events([
|
||||
|
||||
]);
|
||||
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.");
|
||||
}
|
||||
});
|
||||
},
|
||||
'click .editLocation' (event) {
|
||||
event.preventDefault();
|
||||
Session.set("locEditMode", true);
|
||||
Session.set("locEditId", this._id);
|
||||
let locInfo = Locations.findOne({ _id: this._id });
|
||||
$("#locNameInp").val(locInfo.locationName);
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue