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 and type-->
<!--needs to be given charId, parentId and parentCollection-->
<template name="attackEditList">
{{#if attacks.count}}
<hr style="margin: 16px 0 16px 0;">

View File

@@ -1,6 +1,6 @@
Template.attackEditList.helpers({
attacks: function(){
var cursor = Attacks.find({"parent.id": this.parentId, type: this.type, charId: this.charId});
var cursor = Attacks.find({"parent.id": this.parentId, charId: this.charId});
return cursor;
}
});
@@ -12,8 +12,7 @@ Template.attackEditList.events({
parent: {
id: this.parentId,
collection: this.parentCollection
},
type: this.type,
}
});
},
});