Skip to content
Browse files

[FIX] website_slides : fix fullscreen presentation mode

The condition to add the iframe that contains the presentation of the document
was wrong and, so, never met.
Those conditions are evaluated in javascript and not in python as it's part of
t-name template linked to a javascript widget.

Task ID : 1941250
PR #
  • Loading branch information...
dbeguin committed Feb 20, 2019
1 parent c2535ba commit dcae65afc6983792c41ccfe57a1c4852d715b9a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website_slides/static/src/xml/website_slides_fullscreen.xml
@@ -3,7 +3,7 @@
<div t-if="slide.slide_type == 'video' &amp;&amp; !showMiniQuiz" class="player embed-responsive embed-responsive-16by9 embed-responsive-item">
<iframe id="youtube-player" t-att-src="embed_url" allowFullScreen="true" frameborder="0" enablejsapi="1" autoplay="1" allow="autoplay"></iframe>
<div t-if="slide.slide_type in ['presentation', 'document'] &amp;&amp; !showMiniQuiz" class="embed-responsive embed-responsive-4by3 embed-responsive-item ">
<div t-if="['presentation', 'document'].indexOf(slide.slide_type) !== -1 &amp;&amp; !showMiniQuiz" class="embed-responsive embed-responsive-4by3 embed-responsive-item ">
<iframe t-att-src="embed_url" class="o_wslides_iframe_viewer" allowFullScreen="true" height="315" width="420" frameborder="0"></iframe>
<div style="width:100%;height:100%;text-align:center;" t-if="slide.slide_type == 'infographic' &amp;&amp; !showMiniQuiz">

0 comments on commit dcae65a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.