Skip to content
Snippets Groups Projects
Commit e0d5118c authored by Peter Fogg's avatar Peter Fogg
Browse files

Add hidden HTML so that the video player knows whether or not we're in the LMS.

parent 42a55faf
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,8 @@ class VideoModule(VideoFields, XModule):
'show_captions': self.show_captions,
'start': self.start_time,
'end': self.end_time,
'normal_speed_video_id': normal_speed_video_id
'normal_speed_video_id': normal_speed_video_id,
'in_lms': True if self.system.course_id is not None else False
})
......
......@@ -39,3 +39,9 @@
<p>Download subtitles <a href="${track}">here</a>.</p>
</div>
% endif
%if in_lms:
<div id="in_lms" class="true" style="display: none;"></div>
%else:
<div id="in_lms" class="false" style="display: none;"></div>
%endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment