change full calendar default view to month. when changing slot minutes now reinits to view you were last looking at.

This commit is contained in:
Naomi 2011-02-02 11:46:17 -05:00
parent d577483800
commit ec9d84fc91
3 changed files with 3 additions and 2 deletions

View file

@ -41,6 +41,7 @@ function viewDisplay( view ) {
var opt = view.calendar.options;
opt.slotMinutes = parseInt(x);
opt.events = getFullCalendarEvents;
opt.defaultView = view.name;
$(calendarEl).fullCalendar('destroy');
$(calendarEl).fullCalendar(opt);
});