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
-10
View File
@@ -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)) {