Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f98ed0b659 | ||
|
|
6159ce0e88 | ||
|
|
e9509a3a24 | ||
|
|
aa069fd885 |
@@ -85,19 +85,6 @@ Template.features.events({
|
|||||||
var featureId = this._id;
|
var featureId = this._id;
|
||||||
Features.update(featureId, {$set: {used: 0}});
|
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){
|
"tap .enabledCheckbox": function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="containerEdit">
|
<template name="containerEdit">
|
||||||
<paper-input id="containerNameInput fullwidth"
|
<paper-input id="containerNameInput"
|
||||||
label="Name"
|
label="Name"
|
||||||
floatinglabel
|
floatinglabel
|
||||||
value={{name}}></paper-input>
|
value={{name}}></paper-input>
|
||||||
|
|||||||
@@ -4,11 +4,7 @@ Template.containerDialog.helpers({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.containerEdit.onRendered(function(){
|
Template.containerDialog.events({
|
||||||
updatePolymerInputs(this);
|
|
||||||
});
|
|
||||||
|
|
||||||
Template.containerEdit.events({
|
|
||||||
"color-change": function(event, instance){
|
"color-change": function(event, instance){
|
||||||
Containers.update(instance.data.containerId, {$set: {color: event.color}});
|
Containers.update(instance.data.containerId, {$set: {color: event.color}});
|
||||||
},
|
},
|
||||||
@@ -20,8 +16,15 @@ Template.containerEdit.events({
|
|||||||
);
|
);
|
||||||
GlobalUI.closeDetail();
|
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
|
//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;
|
var name = Template.instance().find("#containerNameInput").value;
|
||||||
Containers.update(this._id, {$set: {name: name}});
|
Containers.update(this._id, {$set: {name: name}});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template name="characterSideList">
|
<template name="characterSideList">
|
||||||
|
<core-item icon="social:people" label="Characters"></core-item>
|
||||||
{{#if characters.count}}
|
{{#if characters.count}}
|
||||||
<core-item icon="social:people" label="Characters"></core-item>
|
|
||||||
<div>
|
<div>
|
||||||
{{#each characters}}
|
{{#each characters}}
|
||||||
<div class="singleLineItem">{{name}}</div>
|
<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({
|
var char = Characters.findOne({
|
||||||
_id: characterId,
|
_id: characterId,
|
||||||
$or: [
|
$or: [
|
||||||
|
|||||||
Reference in New Issue
Block a user