Replaced languages and proficiency strings with proper proficiencies

This commit is contained in:
Thaum
2015-04-20 09:11:45 +00:00
parent b76ac23713
commit 6ec9f09b6a
17 changed files with 142 additions and 54 deletions

View File

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