Added cascading deletions

This commit is contained in:
Thaum
2015-03-04 10:17:32 +00:00
parent 88dbaccfc5
commit a5068f1bc2
10 changed files with 72 additions and 34 deletions

View File

@@ -7,11 +7,15 @@ Template.effectsEditList.helpers({
Template.effectsEditList.events({
"tap #addEffectButton": function(){
if ( !_.isBoolean(this.enabled) ) {
this.enabled = true;
}
Effects.insert({
charId: this.charId,
sourceId: this.sourceId,
operation: "add",
type: this.type
type: this.type,
enabled: this.enabled
});
},
});