added function popupchecker to help checking with popup blockers
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user