summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2016-05-16 18:21:08 -0300
committerSilvio <silvio@socioambiental.org>2016-05-16 18:21:08 -0300
commit3475128f4877d75f54953cdcf42960c6cb77048e (patch)
tree86874f623d235cd01f58276fc7c33533486ba26b
parent1ced09aef8085fd72cc782a706a2d1b037fc414d (diff)
downloadtimelinejs-3475128f4877d75f54953cdcf42960c6cb77048e.tar.gz
timelinejs-3475128f4877d75f54953cdcf42960c6cb77048e.tar.bz2
Use timelinejs from CDN
-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,