Commit 496e3ccd authored by Andrew Davis's avatar Andrew Davis
Browse files

quiz MDL-10128 popup checker no longer requests a non-existent file which was...

quiz MDL-10128 popup checker no longer requests a non-existent file which was causing messages in server logs
parent c23c9009
// Miscellaneous core Javascript functions for Moodle
function popupchecker(msg) {
var testwindow = window.open('itestwin.html', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
var testwindow = window.open('', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
if (!testwindow) {
alert(msg);
} else {
......
......@@ -63,10 +63,8 @@
$USER->editing = $edit;
}
/// Print the page header
$bodytags = '';
if ($accessmanager->securewindow_required($canpreview)) {
$bodytags = 'onload="popupchecker(\'' . get_string('popupblockerwarning', 'quiz') . '\');"';
$PAGE->requires->js_function_call('popupchecker',array(get_string('popupblockerwarning', 'quiz')));
}
$PAGE->requires->yui_lib('event');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment