mirror of
https://github.com/moodle/moodle.git
synced 2025-07-13 10:26:31 +02:00
25 lines
591 B
PHP
25 lines
591 B
PHP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!-- //hide
|
|
function fillmessagebox(text) {
|
|
document.form.message.value = text;
|
|
}
|
|
|
|
function openpopup(url,name,height,width) {
|
|
fullurl = "<?=$CFG->wwwroot ?>" + url;
|
|
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
|
|
windowobj = window.open(fullurl,name, options);
|
|
windowobj.focus();
|
|
}
|
|
|
|
function copyrichtext(textname) {
|
|
textname.value = document.richedit.docHtml;
|
|
return true;
|
|
}
|
|
|
|
<? if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
|
|
|
|
// done hiding -->
|
|
</SCRIPT>
|
|
|