diff options
| author | jvm-odoo <jvm@odoo.com> | 2020-07-06 13:04:47 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2020-07-07 13:20:03 +0000 |
| commit | 5e3d73bdeb6cd45ca2b6e16241c2981f0c738ac0 (patch) | |
| tree | ec88dae057f237d4bda0e604712809dfd827f246 /addons/website_slides/static | |
| parent | c13c020d8710e54c0c1f109c6291b309484175d8 (diff) | |
[FIX] website_slides: fix video not loaded in fullscreen web content
Issue
- Create a content in a course with type "web page"
- Access it frontend and add a "text - image" block, edit the image as a video - save
- The video is displayed correctly
- Go into full-screen
The video is not displayed at all.
Cause
The content is added after the page and page widgets are started
Solution
Trigger the widgets start method
OPW-2290233
closes odoo/odoo#54190
X-original-commit: 0f93240e4979479ab281ca49e8703b325c4b83f0
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/website_slides/static')
| -rw-r--r-- | addons/website_slides/static/src/js/slides_course_fullscreen_player.js | 3 |
1 files changed, 3 insertions, 0 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 152916ce436..640f878b71b 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 @@ -573,6 +573,9 @@ odoo.define('website_slides.fullscreen', function (require) { var $wpContainer = $('<div>').addClass('o_wslide_fs_webpage_content bg-white block w-100 overflow-auto'); $(slide.htmlContent).appendTo($wpContainer); $content.append($wpContainer); + this.trigger_up('widgets_start_request', { + $target: $content, + }); } return Promise.resolve(); }, |
