Commit ce9e76ba authored by acrollet's avatar acrollet

Fix CSS files when using CDN

parent 3dc70221
......@@ -8,8 +8,8 @@ fullcalendar:
- core/jquery
css:
theme:
/libraries/fullcalendar/fullcalendar.min.css: { media: screen, minified: true }
/libraries/fullcalendar/fullcalendar.print.min.css: { media: print, minified: true }
/libraries/fullcalendar/fullcalendar.min.css: { media: screen, minified: true }
fullcalendar-scheduler:
version: VERSION
......
......@@ -30,12 +30,12 @@ function fullcalendar_library_library_info_alter(&$libraries, $extension) {
if (!file_exists(DRUPAL_ROOT . '/libraries/fullcalendar/fullcalendar.min.css')) {
unset($libraries['fullcalendar']['css']['theme']['/libraries/fullcalendar/fullcalendar.min.css']);
$libraries['fullcalendar']['css']['theme'][FULLCALENDAR_CSS_CDN] = ['type' => 'external', 'minified' => TRUE];
$libraries['fullcalendar']['css']['theme'][FULLCALENDAR_CSS_CDN] = ['type' => 'external', 'minified' => TRUE, 'media' => 'screen'];
}
if (!file_exists(DRUPAL_ROOT . '/libraries/fullcalendar/fullcalendar.print.min.css')) {
unset($libraries['fullcalendar']['css']['theme']['/libraries/fullcalendar/fullcalendar.print.min.css']);
$libraries['fullcalendar']['css']['theme'][FULLCALENDAR_PRINT_CSS_CDN] = ['type' => 'external', 'minified' => TRUE];
$libraries['fullcalendar']['css']['theme'][FULLCALENDAR_PRINT_CSS_CDN] = ['type' => 'external', 'minified' => TRUE, 'media' => 'print'];
}
if (!file_exists(DRUPAL_ROOT . '/libraries/fullcalendar-scheduler/scheduler.min.js')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment