Skip to content

Commit

Permalink
MDL-50643 mod_scorm: redirect using current window instead of parent.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Dec 22, 2016
1 parent c4cf1c6 commit 9536334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/scorm/version.php
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2016120500; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2016122000; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2016112900; // Requires this Moodle version.
$plugin->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics).
$plugin->cron = 300;
3 changes: 1 addition & 2 deletions mod/scorm/view.js
Expand Up @@ -46,8 +46,7 @@ M.mod_scormform.init = function(Y) {
// Onunload is called multiple times in the SCORM window - we only want to handle when it is actually closed.
setTimeout(function() {
if (winobj.closed) {
// Redirect the parent window to the course homepage.
parent.window.location = course_url;
window.location = course_url;
}
}, 800)
}
Expand Down

0 comments on commit 9536334

Please sign in to comment.