Skip to content

Commit

Permalink
Only relevant change in file
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Sep 6, 2023
1 parent 2259157 commit 9781013
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions views/fullcalendar_views_style_calendar.inc
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,15 @@ class FullcalendarViewsStyleCalendar extends views_plugin_style {
backdrop_add_library('system', 'ui.tooltip');
$settings['hasTooltips'] = TRUE;
}
$module_path = backdrop_get_path('module', 'fullcalendar_views');
backdrop_add_library('fullcalendar_lib', 'fullcalendar');
backdrop_add_js($module_path . '/js/fullcalendar-views.js');
backdrop_add_css($module_path . '/css/fullcalendar-views.css');

// The ajax preview breaks when adding those in live preview.
// @see views_fullcalendar_preprocess_page
if (empty($this->view->live_preview)) {
$module_path = backdrop_get_path('module', 'fullcalendar_views');
backdrop_add_library('fullcalendar_lib', 'fullcalendar');
backdrop_add_js($module_path . '/js/fullcalendar-views.js');
backdrop_add_css($module_path . '/css/fullcalendar-views.css');
}

$id = $view->name . ucfirst($view->current_display);
$setup = array(
Expand Down

0 comments on commit 9781013

Please sign in to comment.