Exercise: Improve code to return to the video

pull/3973/head
Angel Fernando Quiroz Campos 5 years ago
parent 544dff6bd8
commit d367c9b7d0
  1. 3
      main/exercise/exercise_result.php

@ -360,7 +360,8 @@ function showEmbeddableFinishButton()
$js = '<script>
$(function () {
$(\'.btn-close-quiz\').on(\'click\', function () {
window.parent.$(\'video:not(.skip), audio:not(.skip)\').get(0).play();
var playerId = window.frameElement.parentElement.parentElement.parentElement.id;
window.parent.mejs.players[playerId].play();
});
});
</script>';

Loading…
Cancel
Save