less re-rendering of full calendar.
This commit is contained in:
parent
75649c8430
commit
a1dee48759
2 changed files with 3 additions and 11 deletions
|
@ -43,10 +43,6 @@ function viewDisplay( view ) {
|
||||||
opt.events = getFullCalendarEvents;
|
opt.events = getFullCalendarEvents;
|
||||||
$(calendarEl).fullCalendar('destroy');
|
$(calendarEl).fullCalendar('destroy');
|
||||||
$(calendarEl).fullCalendar(opt);
|
$(calendarEl).fullCalendar(opt);
|
||||||
|
|
||||||
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
|
||||||
$(calendarEl).fullCalendar('option', 'contentHeight', mainHeight);
|
|
||||||
$(calendarEl).fullCalendar('render');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.fc-header-left tbody tr:first')
|
$('.fc-header-left tbody tr:first')
|
||||||
|
|
|
@ -190,7 +190,8 @@ function scheduleRefetchEvents() {
|
||||||
$("#schedule_calendar").fullCalendar( 'refetchEvents' );
|
$("#schedule_calendar").fullCalendar( 'refetchEvents' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(window).load(function() {
|
||||||
|
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
||||||
|
|
||||||
$('#schedule_calendar').fullCalendar({
|
$('#schedule_calendar').fullCalendar({
|
||||||
header: {
|
header: {
|
||||||
|
@ -206,6 +207,7 @@ $(document).ready(function() {
|
||||||
agenda: 'H:mm{ - H:mm}',
|
agenda: 'H:mm{ - H:mm}',
|
||||||
month: 'H:mm{ - H:mm}'
|
month: 'H:mm{ - H:mm}'
|
||||||
},
|
},
|
||||||
|
contentHeight: mainHeight,
|
||||||
|
|
||||||
events: getFullCalendarEvents,
|
events: getFullCalendarEvents,
|
||||||
|
|
||||||
|
@ -220,12 +222,6 @@ $(document).ready(function() {
|
||||||
eventDrop: eventDrop,
|
eventDrop: eventDrop,
|
||||||
eventResize: eventResize
|
eventResize: eventResize
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
$(window).load(function() {
|
|
||||||
var mainHeight = document.documentElement.clientHeight - 200 - 50;
|
|
||||||
|
|
||||||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight);
|
|
||||||
$('#schedule_calendar').fullCalendar('render');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue