Removed unneeded "type" from schemas, use parent.collection instead.

This commit is contained in:
Thaum
2015-04-17 11:30:44 +00:00
parent 1352bd1178
commit 245867dae6
13 changed files with 14 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
<!--needs to be given charId, parentId, parentCollection and type-->
<!--needs to be given charId, parentId and parentCollection-->
<template name="effectsEditList">
{{#if effects.count}}
<hr style="margin: 16px 0 16px 0;">

View File

@@ -1,6 +1,6 @@
Template.effectsEditList.helpers({
effects: function(){
var cursor = Effects.find({"parent.id": this.parentId, "parent.collection": this.parentCollection, type: this.type});
var cursor = Effects.find({"parent.id": this.parentId, "parent.collection": this.parentCollection});
return cursor;
}
});
@@ -18,7 +18,6 @@ Template.effectsEditList.events({
collection: this.parentCollection
},
operation: "add",
type: this.type,
enabled: this.enabled
});
},