Commit baa0f45e by Waheed Ahmed

Merge pull request #9406 from edx/waheed/tnl3056-fix-duration-not-displaying-for-youtube-player

Fixed duration not display on youtube player.
parents f80720d0 8f12fdf6
......@@ -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:
......
(function(requirejs) {
requirejs.config({
paths: {
"moment": "xmodule/include/common_static/js/vendor/moment.min"
},
"moment": {
exports: "moment"
}
});
}).call(this, RequireJS.requirejs);
......@@ -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
*
......
......@@ -1515,6 +1515,7 @@ PIPELINE_JS = {
'source_filenames': ['js/xblock/core.js'] + sorted(common_js) + sorted(project_js) + base_application_js + [
'js/sticky_filter.js',
'js/query-params.js',
'js/vendor/moment.min.js',
],
'output_filename': 'js/lms-application.js',
},
......
......@@ -185,8 +185,11 @@
},
"tinymce": {
exports: "tinymce"
}
},
// End of needed by OVA
"moment": {
exports: "moment"
}
}
});
}).call(this, require || RequireJS.require, define || RequireJS.define);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment