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:
parent
830c58b7e3
commit
77241d9bd1
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user