Skip to content

Instantly share code, notes, and snippets.

@pvhee
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save pvhee/9f154eeb68966fa7c59f to your computer and use it in GitHub Desktop.

Select an option

Save pvhee/9f154eeb68966fa7c59f to your computer and use it in GitHub Desktop.
Hard-coding timeline JS version
diff --git a/views_timelinejs.module b/views_timelinejs.module
index f1a1a4d..f9b0989 100644
--- a/views_timelinejs.module
+++ b/views_timelinejs.module
@@ -40,17 +40,13 @@ function views_timelinejs_libraries_info() {
'name' => 'timeline',
'vendor url' => 'http://timeline.verite.co',
'download url' => 'http://timeline.verite.co',
- 'version arguments' => array(
- 'file' => 'build/js/timeline.js',
- 'pattern' => '/TimelineJS - ver. ([\d.]+)/i',
- 'lines' => 5,
- ),
+ 'version' => '2.7',
'files' => array(
'js' => array(
- 'build/js/storyjs-embed.js',
+ 'compiled/js/storyjs-embed.js',
),
'css' => array(
- 'build/css/timeline.css',
+ 'compiled/css/timeline.css',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment