Started implementing soft delete attacks, added delete toast

This commit is contained in:
Thaum
2015-03-24 13:07:27 +00:00
parent 107a4150ff
commit 46b836e707
6 changed files with 39 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
<template name="undoToast">
<div id="undoButton" style="color: #eeff41;">Undo</div>
</template>

View File

@@ -0,0 +1,7 @@
Template.undoToast.events({
'tap #undoButton': function(event, instance){
var collection = window[this.collection];
if(!collection) return;
collection.restore(this.id);
}
});