quiz MDL-10128 popup checker no longer requests a non-existent file which was causing messages in server logs

This commit is contained in:
Andrew Davis
2009-12-10 02:29:53 +00:00
parent c23c90093e
commit 496e3ccdd2
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
// 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 {
+1 -3
View File
@@ -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');