mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
16 lines
384 B
JavaScript
16 lines
384 B
JavaScript
Meteor.startup(function () {
|
|
Template[getTemplate('pageItem')].helpers({
|
|
formId: function () {
|
|
return 'updatePage-'+ this._id
|
|
}
|
|
});
|
|
|
|
Template[getTemplate('pageItem')].events({
|
|
'click .delete-link': function(e, instance){
|
|
e.preventDefault();
|
|
if (confirm("Delete page?")) {
|
|
Pages.collection.remove(instance.data._id);
|
|
}
|
|
}
|
|
});
|
|
});
|