Fixed calendar not displaying events

This commit is contained in:
Kenneth Jao 2016-08-10 18:13:08 -04:00
parent 946f8e3257
commit e9fc5b28b0

View File

@ -151,9 +151,6 @@ Template.main.helpers({
};
},
calendarOptions() {
return {
height: window.innerHeight *.8,
events: function() {
var cursor = work.find({});
var donelist = [];
cursor.forEach(function(current) {
@ -162,9 +159,10 @@ Template.main.helpers({
duedate = current.dueDate.toISOString().slice(0,10);
donelist.push({start: duedate, title: title, backgroundColor: backgroundColor});
});
console.log(donelist);
return donelist;
}
return {
height: window.innerHeight *.8,
events: donelist
};
},
calCenter() {