Cleaned up noisy logs and debugs
This commit is contained in:
@@ -88,7 +88,6 @@ this.GlobalUI = (function() {
|
||||
};
|
||||
|
||||
GlobalUI.popStateHandler = function(e){
|
||||
console.log();
|
||||
var state = e.originalEvent.state;
|
||||
if(state) {
|
||||
if(state.detail === "closed"){
|
||||
|
||||
@@ -15,7 +15,6 @@ Template.containerDialog.events({
|
||||
},
|
||||
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
|
||||
"change #containerNameInput, input #containerNameInput": function(event){
|
||||
console.log("changed Nameinput");
|
||||
var name = Template.instance().find("#containerNameInput").value;
|
||||
Containers.update(this._id, {$set: {name: name}});
|
||||
},
|
||||
|
||||
@@ -74,7 +74,6 @@ Template.inventory.helpers({
|
||||
Template.inventory.events({
|
||||
"tap #addItem": function(event){
|
||||
var charId = this._id;
|
||||
console.log(charId);
|
||||
Items.insert({
|
||||
charId: charId,
|
||||
parent:{
|
||||
@@ -82,7 +81,7 @@ Template.inventory.events({
|
||||
collection: "Characters"
|
||||
}
|
||||
}, function(err, itemId){
|
||||
if(err) console.log(err);
|
||||
if(err) throw err;
|
||||
GlobalUI.setDetail({
|
||||
template: "itemDialog",
|
||||
data: {itemId: itemId, charId: charId},
|
||||
|
||||
@@ -25,7 +25,6 @@ Template.itemDialog.events({
|
||||
},
|
||||
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
|
||||
"change #itemNameInput": function(event){
|
||||
console.log("changed Nameinput");
|
||||
var name = Template.instance().find("#itemNameInput").value;
|
||||
Items.update(this._id, {$set: {name: name}});
|
||||
},
|
||||
|
||||
@@ -11,14 +11,12 @@ Template.home.helpers({
|
||||
|
||||
Template.home.events({
|
||||
"tap .characterCard": function(event, instance){
|
||||
console.log(this);
|
||||
Router.go("characterSheet", {_id: this._id});
|
||||
},
|
||||
"tap #addCharacter": function (event, template) {
|
||||
Characters.insert({owner: Meteor.userId()});
|
||||
},
|
||||
"tap #deleteChar": function(event, template){
|
||||
console.log("deleting", this);
|
||||
Characters.remove(this._id);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
Schemas = {};
|
||||
SimpleSchema.debug = true
|
||||
Reference in New Issue
Block a user