From 3475128f4877d75f54953cdcf42960c6cb77048e Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 16 May 2016 18:21:08 -0300 Subject: Use timelinejs from CDN --- timelinejs.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/timelinejs.module b/timelinejs.module index 65d820d..f8af966 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -253,7 +253,10 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') { 'height' => $height, 'source' => $source, 'css' => $css, - 'js' => '/' . $library_path . '/compiled/js/timeline-min.js', + // Use timelinejs from CDN until we fix it's direct inclusion + // See https://gitlab.com/socioambiental/widgets/issues/2 + 'js' => 'https://cdn.knightlab.com/libs/timeline/latest/js/timeline-min.js', + //'js' => '/' . $library_path . '/compiled/js/timeline-min.js', 'lang' => '/' . $library_path . '/compiled/js/locale/' . $language->language . '.js', 'font' => variable_get('timelinejs_font', 'Bevan-PotanoSans'), 'library_path' => $library_path, -- cgit v1.2.3