Merge branch 'master_MDL-43011' of git://github.com/danmarsden/moodle
[moodle.git] / mod / scorm / player.php
index 308d51b..f9f0129 100644 (file)
@@ -259,4 +259,10 @@ if (empty($scorm->popup) || $displaymode == 'popup') {
 if (!empty($forcejs)) {
     echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
 }
+
+// Add the checknet system to keep checking for a connection.
+$PAGE->requires->string_for_js('networkdropped', 'mod_scorm');
+$PAGE->requires->yui_module('moodle-core-checknet', 'M.core.checknet.init', array(array(
+    'message' => array('networkdropped', 'mod_scorm'),
+)));
 echo $OUTPUT->footer();