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:
parent
d577483800
commit
ec9d84fc91
|
@ -117,7 +117,7 @@ $(document).ready(function() {
|
|||
center: 'title',
|
||||
right: 'agendaDay, agendaWeek, month'
|
||||
},
|
||||
defaultView: 'agendaDay',
|
||||
defaultView: 'month',
|
||||
editable: false,
|
||||
allDaySlot: false,
|
||||
axisFormat: 'H:mm',
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -199,7 +199,7 @@ $(window).load(function() {
|
|||
center: 'title',
|
||||
right: 'agendaDay, agendaWeek, month'
|
||||
},
|
||||
defaultView: 'agendaDay',
|
||||
defaultView: 'month',
|
||||
editable: false,
|
||||
allDaySlot: false,
|
||||
axisFormat: 'H:mm',
|
||||
|
|
Loading…
Reference in New Issue