mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34257 quiz 'secure' window: does not close automatically.
This commit is contained in:
parent
904673dd20
commit
ddda79ca5f
@ -275,7 +275,7 @@ M.mod_quiz.secure_window = {
|
||||
}, '#secureclosebutton');
|
||||
},
|
||||
|
||||
close: function(url, delay) {
|
||||
close: function(Y, url, delay) {
|
||||
setTimeout(function() {
|
||||
if (window.opener) {
|
||||
window.opener.document.location.reload();
|
||||
|
@ -509,8 +509,8 @@ class mod_quiz_renderer extends plugin_renderer_base {
|
||||
$output .= html_writer::tag('p', get_string('pleaseclose', 'quiz'));
|
||||
$delay = 0;
|
||||
}
|
||||
$this->page->requires->js_function_call('M.mod_quiz.secure_window.close',
|
||||
array($url, $delay));
|
||||
$this->page->requires->js_init_call('M.mod_quiz.secure_window.close',
|
||||
array($url, $delay), false, quiz_get_js_module());
|
||||
|
||||
$output .= $this->box_end();
|
||||
$output .= $this->footer();
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2012061700; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->version = 2012061701; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->requires = 2012061700; // Requires this Moodle version.
|
||||
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
|
||||
$module->cron = 60;
|
||||
|
Loading…
x
Reference in New Issue
Block a user