MDL-16671 - Move openpopup out of javascript.php and in to javascript-static.js

This commit is contained in:
tjhunt
2008-09-25 03:14:24 +00:00
parent 830c58b7e3
commit 77241d9bd1
2 changed files with 11 additions and 10 deletions
+11
View File
@@ -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;
}