Commit 8f12fdf6 by Waheed Ahmed

Fixed duration not display on youtube player.

TNL-3056
parent f80720d0
...@@ -60,6 +60,7 @@ lib_paths: ...@@ -60,6 +60,7 @@ lib_paths:
- public/js/split_test_staff.js - public/js/split_test_staff.js
- common_static/js/src/accessibility_tools.js - common_static/js/src/accessibility_tools.js
- common_static/js/vendor/moment.min.js - common_static/js/vendor/moment.min.js
- spec/main_requirejs.js
# Paths to spec (test) JavaScript files # Paths to spec (test) JavaScript files
spec_paths: 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 @@ ...@@ -14,10 +14,9 @@
define( define(
'video/01_initialize.js', 'video/01_initialize.js',
['video/03_video_player.js', 'video/00_i18n.js'], ['video/03_video_player.js', 'video/00_i18n.js', 'moment'],
function (VideoPlayer, i18n) { function (VideoPlayer, i18n, moment) {
var moment = window.moment; var moment = moment || window.moment;
/** /**
* @function * @function
* *
......
...@@ -1515,6 +1515,7 @@ PIPELINE_JS = { ...@@ -1515,6 +1515,7 @@ PIPELINE_JS = {
'source_filenames': ['js/xblock/core.js'] + sorted(common_js) + sorted(project_js) + base_application_js + [ 'source_filenames': ['js/xblock/core.js'] + sorted(common_js) + sorted(project_js) + base_application_js + [
'js/sticky_filter.js', 'js/sticky_filter.js',
'js/query-params.js', 'js/query-params.js',
'js/vendor/moment.min.js',
], ],
'output_filename': 'js/lms-application.js', 'output_filename': 'js/lms-application.js',
}, },
......
...@@ -185,8 +185,11 @@ ...@@ -185,8 +185,11 @@
}, },
"tinymce": { "tinymce": {
exports: "tinymce" exports: "tinymce"
} },
// End of needed by OVA // End of needed by OVA
"moment": {
exports: "moment"
}
} }
}); });
}).call(this, require || RequireJS.require, define || RequireJS.define); }).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