Files
DiceCloud/rpg-docs/client/views/character/effects/effectsViewList/effectsViewList.js
2015-04-22 12:44:25 +02:00

13 lines
277 B
JavaScript

Template.effectsViewList.helpers({
effects: function(){
var selector = {
"parent.id": this.parentId,
"charId": this.charId
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
}
return Effects.find(selector, {fields: {parent: 0}});
}
});