diff options
Diffstat (limited to 'apps/calendar/js/calendar.js')
-rw-r--r-- | apps/calendar/js/calendar.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index a4e08b56fa2..4d0ca3ba650 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -658,6 +658,12 @@ $(document).ready(function(){ viewDisplay: function(view) { $('#datecontrol_date').html(view.title); $.get(OC.filePath('calendar', 'ajax', 'changeview.php') + "?v="+view.name); + if (view.name == 'agendaWeek') { + $('#calendar_holder').fullCalendar('option', 'aspectRatio', 0.1); + } + else { + $('#calendar_holder').fullCalendar('option', 'aspectRatio', 1.35); + } }, selectable: true, selectHelper: true, |