Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f98ed0b659 | ||
|
|
6159ce0e88 | ||
|
|
e9509a3a24 | ||
|
|
aa069fd885 |
@@ -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();
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<template name="containerEdit">
|
||||
<paper-input id="containerNameInput fullwidth"
|
||||
<paper-input id="containerNameInput"
|
||||
label="Name"
|
||||
floatinglabel
|
||||
value={{name}}></paper-input>
|
||||
|
||||
@@ -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}});
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user