MDL-16671 - Move openpopup out of javascript.php and in to javascript-static.js
This commit is contained in:
@@ -534,3 +534,14 @@ function getElementsByClassName(oElm, strTagName, oClassNames){
|
||||
}
|
||||
return (arrReturnElements)
|
||||
}
|
||||
|
||||
function openpopup(url, name, options, fullscreen) {
|
||||
var fullurl = moodle_config.wwwroot + url;
|
||||
var windowobj = window.open(fullurl,name,options);
|
||||
if (fullscreen) {
|
||||
windowobj.moveTo(0,0);
|
||||
windowobj.resizeTo(screen.availWidth,screen.availHeight);
|
||||
}
|
||||
windowobj.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user