Merge branch 'dev' into sabre32
This commit is contained in:
commit
9749bbcedc
@ -17,6 +17,6 @@ function on_fullscreen() {
|
|||||||
function on_inline() {
|
function on_inline() {
|
||||||
var view = $('#events-calendar').fullCalendar('getView');
|
var view = $('#events-calendar').fullCalendar('getView');
|
||||||
if(view.type === 'month') {
|
if(view.type === 'month') {
|
||||||
$('#events-calendar').fullCalendar('option', 'height', 'auto');
|
$('#events-calendar').fullCalendar('option', 'height', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,6 @@ function on_fullscreen() {
|
|||||||
function on_inline() {
|
function on_inline() {
|
||||||
var view = $('#events-calendar').fullCalendar('getView');
|
var view = $('#events-calendar').fullCalendar('getView');
|
||||||
if(view.type === 'month') {
|
if(view.type === 'month') {
|
||||||
$('#events-calendar').fullCalendar('option', 'height', 'auto');
|
$('#events-calendar').fullCalendar('option', 'height', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,12 @@
|
|||||||
function changeView(action, viewName) {
|
function changeView(action, viewName) {
|
||||||
$('#events-calendar').fullCalendar(action, viewName);
|
$('#events-calendar').fullCalendar(action, viewName);
|
||||||
var view = $('#events-calendar').fullCalendar('getView');
|
var view = $('#events-calendar').fullCalendar('getView');
|
||||||
|
if(view.type === 'agendaDay' || view.type === 'agendaWeek') {
|
||||||
|
$('#events-calendar').fullCalendar('option', 'height', 'auto');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('#events-calendar').fullCalendar('option', 'height', '');
|
||||||
|
}
|
||||||
$('#title').text(view.title);
|
$('#title').text(view.title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,7 +48,6 @@
|
|||||||
firstDay: {{$first_day}},
|
firstDay: {{$first_day}},
|
||||||
|
|
||||||
eventLimit: 3,
|
eventLimit: 3,
|
||||||
height: 'auto',
|
|
||||||
|
|
||||||
monthNames: aStr['monthNames'],
|
monthNames: aStr['monthNames'],
|
||||||
monthNamesShort: aStr['monthNamesShort'],
|
monthNamesShort: aStr['monthNamesShort'],
|
||||||
|
Reference in New Issue
Block a user