Fixed duration not display on youtube player.

TNL-3056
This commit is contained in:
Waheed Ahmed
2015-08-20 20:19:50 +05:00
parent f80720d09e
commit 8f12fdf6eb
5 changed files with 20 additions and 5 deletions

View File

@@ -60,6 +60,7 @@ lib_paths:
- public/js/split_test_staff.js
- common_static/js/src/accessibility_tools.js
- common_static/js/vendor/moment.min.js
- spec/main_requirejs.js
# Paths to spec (test) JavaScript files
spec_paths:

View File

@@ -0,0 +1,11 @@
(function(requirejs) {
requirejs.config({
paths: {
"moment": "xmodule/include/common_static/js/vendor/moment.min"
},
"moment": {
exports: "moment"
}
});
}).call(this, RequireJS.requirejs);

View File

@@ -14,10 +14,9 @@
define(
'video/01_initialize.js',
['video/03_video_player.js', 'video/00_i18n.js'],
function (VideoPlayer, i18n) {
var moment = window.moment;
['video/03_video_player.js', 'video/00_i18n.js', 'moment'],
function (VideoPlayer, i18n, moment) {
var moment = moment || window.moment;
/**
* @function
*