1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

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

@ -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;
}

@ -30,16 +30,6 @@ setTimeout('fix_column_widths()', 20);
</script>
<script type="text/javascript">
//<![CDATA[
function openpopup(url,name,options,fullscreen) {
fullurl = "<?php echo $CFG->httpswwwroot ?>" + url;
windowobj = window.open(fullurl,name,options);
if (fullscreen) {
windowobj.moveTo(0,0);
windowobj.resizeTo(screen.availWidth,screen.availHeight);
}
windowobj.focus();
return false;
}
<?php
echo "function inserttext(text) {\n";
if (!empty($SESSION->inserttextform)) {