added config for initial calendar view (#363)

This commit is contained in:
Kevin Papst
2018-10-21 15:43:16 +02:00
committed by GitHub
parent 3075276a52
commit 0165658659
8 changed files with 155 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
<script>
$(function () {
$('#calendar').fullCalendar({
defaultView: '{{ app.user.getPreferenceValue('calendar.initial_view') }}',
{% if not google.apiKey is null %}
googleCalendarApiKey: '{{ google.apiKey }}',
{% endif %}
@@ -84,7 +85,7 @@
'</div>'
,
trigger: 'hover',
placement: 'top',
placement: 'auto',
container: 'body',
html: true
});