Added basic user guide

This commit is contained in:
Stefan Zermatten
2015-04-29 12:25:33 +02:00
parent b95636a8a3
commit e05fa064d5
13 changed files with 145 additions and 45 deletions

View File

@@ -3,7 +3,7 @@ Template.effectsEditList.helpers({
var selector = {
"parent.id": this.parentId,
"parent.collection": this.parentCollection,
"charId": this.charId
"charId": this.charId,
};
if (this.parentGroup){
selector["parent.group"] = this.parentGroup;
@@ -23,10 +23,11 @@ Template.effectsEditList.events({
charId: this.charId,
parent: {
id: this.parentId,
collection: this.parentCollection
collection: this.parentCollection,
group: this.parentGroup,
},
operation: "add",
enabled: this.enabled
enabled: this.enabled,
});
},
});

View File

@@ -39,7 +39,12 @@ Template.features.helpers({
Template.features.events({
"tap #addFeature": function(event){
var featureId = Features.insert({name: "New Feature", charId: this._id});
var featureId = Features.insert({
name: "New Feature",
charId: this._id,
enabled: true,
alwaysEnabled: true,
});
GlobalUI.setDetail({
template: "featureDialog",
data: {featureId: featureId, charId: this._id, startEditing: true},