mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
added function popupchecker to help checking with popup blockers
This commit is contained in:
parent
704fbf6e1b
commit
b48fd7b59a
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user