Files
DiceCloud/rpg-docs/client/views/character/effects/effectsEditList/effectsEditList.js
2015-02-27 10:50:28 +00:00

17 lines
350 B
JavaScript

Template.effectsEditList.helpers({
effects: function(){
var cursor = Effects.find({sourceId: this.sourceId, type: this.type});
return cursor;
}
});
Template.effectsEditList.events({
"tap #addEffectButton": function(){
Effects.insert({
charId: this.charId,
sourceId: this.sourceId,
operation: "add",
type: this.type
});
},
});