added function popupchecker to help checking with popup blockers

This commit is contained in:
moodler 2005-11-09 02:18:50 +00:00
parent 704fbf6e1b
commit b48fd7b59a

View File

@ -1,5 +1,14 @@
// 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');
if (testwindow == null)
{alert(msg);}
else {
testwindow.close();
}
}
function popUpProperties(inobj) {
op = window.open();
op.document.open('text/plain');