Skip to content

Commit

Permalink
MDL-34257 quiz 'secure' window: does not close automatically.
Browse files Browse the repository at this point in the history
Conflicts:

	mod/quiz/version.php
  • Loading branch information
timhunt committed Jul 13, 2012
1 parent 9a7c3d5 commit f2c88f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/module.js
Expand Up @@ -271,7 +271,7 @@ M.mod_quiz.secure_window = {
}, '#secureclosebutton'); }, '#secureclosebutton');
}, },


close: function(url, delay) { close: function(Y, url, delay) {
setTimeout(function() { setTimeout(function() {
if (window.opener) { if (window.opener) {
window.opener.document.location.reload(); window.opener.document.location.reload();
Expand Down
4 changes: 2 additions & 2 deletions mod/quiz/renderer.php
Expand Up @@ -496,8 +496,8 @@ public function close_attempt_popup($url, $message = '') {
$output .= html_writer::tag('p', get_string('pleaseclose', 'quiz')); $output .= html_writer::tag('p', get_string('pleaseclose', 'quiz'));
$delay = 0; $delay = 0;
} }
$this->page->requires->js_function_call('M.mod_quiz.secure_window.close', $this->page->requires->js_init_call('M.mod_quiz.secure_window.close',
array($url, $delay)); array($url, $delay), false, quiz_get_js_module());


$output .= $this->box_end(); $output .= $this->box_end();
$output .= $this->footer(); $output .= $this->footer();
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/version.php
Expand Up @@ -25,7 +25,7 @@


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


$module->version = 2011112901; // The current module version (Date: YYYYMMDDXX) $module->version = 2011112902; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2011112900; // Requires this Moodle version $module->requires = 2011112900; // Requires this Moodle version
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics)
$module->cron = 60; $module->cron = 60;

0 comments on commit f2c88f4

Please sign in to comment.