summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timelinejs.module5
1 files changed, 4 insertions, 1 deletions
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,