Here's the jsfiddle: http://jsfiddle.net/pRqPz/7/
When I click on a button to hide one div and show another (which has the calendar), only the calendar header loads.
When I click to another view and click back, the entire calendar loads. I've tried refreshing the calendar after giving it data, but no luck.
What am I doing wrong? Not waiting for div to fully load?
Here's my week calendar init code:
var $calendar = $('#calendar').weekCalendar({
firstDayOfWeek: 1,
daysToShow: 5,
useShortDayNames: true,
showHeader: false,
timeslotsPerHour: 4,
scrollToHourMillis : 0,
height: function($calendar){
return $(window).height() - $('h1').outerHeight(true);
},
data: eventData
});
Thank you again for helpful tips!