calendar fixes

This commit is contained in:
yamanq 2016-08-10 17:51:42 -04:00
parent 5c8cca4009
commit 1ca406c9d7
2 changed files with 3 additions and 4 deletions

View File

@ -155,13 +155,12 @@ Template.main.helpers({
height: window.innerHeight *.8,
events: function() {
var cursor = work.find({});
var current;
var donelist;
var donelist = [];
cursor.forEach(function(current) {
backgroundColor = calendarColors[current.type];
title = current.name;
duedate = current.date.toISOString().slice(0,10);
donelist.append({start: duedate, title: title, backgroundColor: backgroundColor});
donelist.push({start: duedate, title: title, backgroundColor: backgroundColor});
});
return donelist;
}

View File

@ -29,7 +29,7 @@ classes.schema = new SimpleSchema({
work.schema = new SimpleSchema({
class: {type: String},
dueDate: {type: Date},
aliases: {type: [String]},
aliases: {type: [String], optional: true},
submittor: {type: String, optional: true},
confirmations: {type: [String], optional: true},
reports: {type: [String], optional: true},