summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchraf (abz) <abz@odoo.com>2020-12-22 11:35:08 +0000
committerAchraf (abz) <abz@odoo.com>2020-12-29 10:34:03 +0000
commitde697129d3df2a0ca1f675af1bf57cc5c8a44f5c (patch)
treef210bc7dc3b98331a799fa8ff6da1f0802e0ac33
parent09d1e18eb401990a14d850e07a55cff498b30ac5 (diff)
[FIX] website_slides: Complete courses with video
What are the steps to reproduce your issue ? 1. Install ELearning 2. Create a course 3. Add a video from youtube 4. Attempt to do the course from a user that is invited What is currently happening ? You cannot complete a video (turn the checkmark green) if there is not a quiz. Therefore you cannot complete the course What are you expecting to happen ? Turn the checkmark green to signify that video is completed after watching the video and then have the ability to complete the course Why is this happening ? Because of this commit https://github.com/odoo/odoo/pull/61581/files that changes 'youtube.com' to 'youtube-nocookie.com' How to fix the bug ? Remove host opw-2418545 closes odoo/odoo#63871 X-original-commit: 484957caf89e0f324dffda6f2ac0a1ca543b969b Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
-rw-r--r--addons/website_slides/static/src/js/slides_course_fullscreen_player.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/website_slides/static/src/js/slides_course_fullscreen_player.js b/addons/website_slides/static/src/js/slides_course_fullscreen_player.js
index 85e0f5b1860..41ae5c59615 100644
--- a/addons/website_slides/static/src/js/slides_course_fullscreen_player.js
+++ b/addons/website_slides/static/src/js/slides_course_fullscreen_player.js
@@ -75,7 +75,6 @@ odoo.define('website_slides.fullscreen', function (require) {
*/
_setupYoutubePlayer: function (){
this.player = new YT.Player('youtube-player' + this.slide.id, {
- host: 'https://www.youtube.com',
playerVars: {
'autoplay': 1,
'origin': window.location.origin