calendar fixes
This commit is contained in:
parent
5c8cca4009
commit
1ca406c9d7
@ -155,13 +155,12 @@ Template.main.helpers({
|
|||||||
height: window.innerHeight *.8,
|
height: window.innerHeight *.8,
|
||||||
events: function() {
|
events: function() {
|
||||||
var cursor = work.find({});
|
var cursor = work.find({});
|
||||||
var current;
|
var donelist = [];
|
||||||
var donelist;
|
|
||||||
cursor.forEach(function(current) {
|
cursor.forEach(function(current) {
|
||||||
backgroundColor = calendarColors[current.type];
|
backgroundColor = calendarColors[current.type];
|
||||||
title = current.name;
|
title = current.name;
|
||||||
duedate = current.date.toISOString().slice(0,10);
|
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;
|
return donelist;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ classes.schema = new SimpleSchema({
|
|||||||
work.schema = new SimpleSchema({
|
work.schema = new SimpleSchema({
|
||||||
class: {type: String},
|
class: {type: String},
|
||||||
dueDate: {type: Date},
|
dueDate: {type: Date},
|
||||||
aliases: {type: [String]},
|
aliases: {type: [String], optional: true},
|
||||||
submittor: {type: String, optional: true},
|
submittor: {type: String, optional: true},
|
||||||
confirmations: {type: [String], optional: true},
|
confirmations: {type: [String], optional: true},
|
||||||
reports: {type: [String], optional: true},
|
reports: {type: [String], optional: true},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user