Browse Source

quattro: fix events_reminder

pull/2859/head
rabuzarus 5 years ago
parent
commit
88f1affb2f
1 changed files with 6 additions and 9 deletions
  1. +6
    -9
      view/theme/quattro/templates/events_reminder.tpl

+ 6
- 9
view/theme/quattro/templates/events_reminder.tpl View File

@ -1,6 +1,7 @@
<link rel='stylesheet' type='text/css' href='{{$baseurl}}/library/fullcalendar/fullcalendar.css' />
<script language="javascript" type="text/javascript"
src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
<script type="text/javascript" src="{{$baseurl}}/library/moment/moment.min.js"></script>
<script type="text/javascript" src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
<script>
// start calendar from yesterday
var yesterday= new Date()
@ -12,7 +13,7 @@
function(data){
$.colorbox({html:data});
}
);
);
}
$(document).ready(function() {
$('#events-reminder').fullCalendar({
@ -21,14 +22,10 @@
month: yesterday.getMonth(),
date: yesterday.getDate(),
events: '{{$baseurl}}/events/json/',
header: {
left: '',
center: '',
right: ''
},
header: false,
timeFormat: 'H(:mm)',
defaultView: 'basicWeek',
height: 50,
contentHeight: 50,
eventClick: function(calEvent, jsEvent, view) {
showEvent(calEvent.id);
}


Loading…
Cancel
Save