Difference between revisions of "Template:Waterloo/Pages/cal-heatmap-test"

 
Line 44: Line 44:
 
);
 
);
 
var message = ""
 
var message = ""
$.each(notes[month[date.getMonth()]+(date.getDate())], function( index, value ) {
+
var key = month[date.getMonth()]+(date.getDate())
 +
if (key in notes){
 +
$.each(notes[key], function( index, value ) {
 
  message += "<li>"+value+"</li>";
 
  message += "<li>"+value+"</li>";
  });
+
  });}
 
$("#notes-table").html(message
 
$("#notes-table").html(message
 
);
 
);

Latest revision as of 23:53, 13 September 2015