Browse Source

Merge pull request #286 from irfanevrens/fullcalendar_console_error

pull/291/head
Aigars Silkalns 3 years ago
committed by GitHub
parent
commit
34b660b9d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/assets/scripts/fullcalendar/index.js

+ 5
- 0
src/assets/scripts/fullcalendar/index.js View File

@ -7,6 +7,11 @@ import listPlugin from '@fullcalendar/list';
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
// element found in dom ?
if (calendarEl == null) {
return
}
var calendar = new Calendar(calendarEl, {
plugins: [ interactionPlugin, dayGridPlugin, timeGridPlugin, listPlugin ],
headerToolbar: {


Loading…
Cancel
Save