Skip to content

Commit

Permalink
adjust requirements (#49)
Browse files Browse the repository at this point in the history
* adjust requirements

fixes #48

* remove init function
  • Loading branch information
korthjp17 authored and muskie9 committed Feb 12, 2019
1 parent 7613c79 commit 9484ba3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
"installer-name": "html5video",
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"expose": [
"thirdparty/video-js",
"css"
]
}
}
7 changes: 0 additions & 7 deletions src/Pages/VideoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,4 @@
*/
class VideoController extends \PageController
{
public function init()
{
parent::init();

Requirements::css(VIDEO_DIR . '/thirdparty/video-js/video-js.min.css');
Requirements::javascript(VIDEO_DIR . '/thirdparty/video-js/video.min.js');
}
}
7 changes: 5 additions & 2 deletions templates/Layout/Video.ss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% require css(html5video/css/video.css) %>
<% require css(dynamic/silverstripe-html5video: css/video.css) %>
<% require css(dynamic/silverstripe-html5video: thirdparty/video-js/video-js.min.css) %>
<% include SideBar %>
<div class="content-container unit size3of4 lastUnit">
<article>
Expand Down Expand Up @@ -33,4 +34,6 @@
</article>
$Form
$CommentsForm
</div>
</div>

<% require javascript("dynamic/silverstripe-html5video: thirdparty/video-js/video.min.js") %>

0 comments on commit 9484ba3

Please sign in to comment.