Compare commits

...

4 Commits
0.2.1 ... 0.2.2

Author SHA1 Message Date
Stefan Zermatten
f98ed0b659 Fixed old proficiency dialog showing up after it has been depreciated 2015-04-30 07:42:59 +02:00
Stefan Zermatten
6159ce0e88 Characters menu item now shows up when no characters yet exist 2015-04-30 07:42:30 +02:00
Stefan Zermatten
e9509a3a24 Fixed containers not responding to rename or delete 2015-04-30 07:30:37 +02:00
Stefan Zermatten
aa069fd885 Removed single character subscription vulnerability 2015-04-30 07:18:42 +02:00
5 changed files with 13 additions and 22 deletions

View File

@@ -85,19 +85,6 @@ Template.features.events({
var featureId = this._id;
Features.update(featureId, {$set: {used: 0}});
},
"tap #proficiencies": function(event){
var charId = this._id;
GlobalUI.setDetail({
template: "textDialog",
data: {
charId: charId,
field: "proficiencies",
title: "Proficiencies",
color: "q",
},
heroId: this._id + "proficiencies",
});
},
"tap .enabledCheckbox": function(event){
event.stopPropagation();
},

View File

@@ -9,7 +9,7 @@
</template>
<template name="containerEdit">
<paper-input id="containerNameInput fullwidth"
<paper-input id="containerNameInput"
label="Name"
floatinglabel
value={{name}}></paper-input>

View File

@@ -4,11 +4,7 @@ Template.containerDialog.helpers({
}
});
Template.containerEdit.onRendered(function(){
updatePolymerInputs(this);
});
Template.containerEdit.events({
Template.containerDialog.events({
"color-change": function(event, instance){
Containers.update(instance.data.containerId, {$set: {color: event.color}});
},
@@ -20,8 +16,15 @@ Template.containerEdit.events({
);
GlobalUI.closeDetail();
},
});
Template.containerEdit.onRendered(function(){
updatePolymerInputs(this);
});
Template.containerEdit.events({
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
"change #containerNameInput, input #containerNameInput": function(event){
"change #containerNameInput": function(event){
var name = Template.instance().find("#containerNameInput").value;
Containers.update(this._id, {$set: {name: name}});
},

View File

@@ -1,6 +1,6 @@
<template name="characterSideList">
<core-item icon="social:people" label="Characters"></core-item>
{{#if characters.count}}
<core-item icon="social:people" label="Characters"></core-item>
<div>
{{#each characters}}
<div class="singleLineItem">{{name}}</div>

View File

@@ -1,4 +1,5 @@
Meteor.publish("singleCharacter", function(characterId, userId){
Meteor.publish("singleCharacter", function(characterId){
userId = this.userId;
var char = Characters.findOne({
_id: characterId,
$or: [