diff --git a/templates/lecture.html b/templates/lecture.html index b364956070a35cdb3e849e014b9fcf9a770eabc5..acc8d1ead45e07d35002917e04ef6edaf9a2c783 100644 --- a/templates/lecture.html +++ b/templates/lecture.html @@ -90,7 +90,6 @@ </div> {% endif %} - <script> function hintchapterclick (src) { $.ajax({ @@ -148,6 +147,12 @@ $(document).ready(function() { videojs('videoplayer').currentTime($(this).data("seek-time")); return false; }); + var downloadable = {{ ((videos|length > 0 and videos[0].downloadable) or ismod())|tojson }}; + if (!downloadable) { + $("#videoplayer_html5_api").on('contextmenu', function(e) { + e.preventDefault(); + }); + } }); </script> {% endblock %}