mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Changed to make use of require_js().
This commit is contained in:
parent
f47e1c1751
commit
ae13dbc845
1 changed files with 6 additions and 6 deletions
|
@ -13,6 +13,11 @@ require_once('lib.php');
|
|||
require_once($CFG->libdir.'/moodlelib.php');
|
||||
require_once($CFG->libdir.'/json/JSON.php');
|
||||
|
||||
require_js('yui_yahoo');
|
||||
require_js('yui_dom');
|
||||
require_js('yui_connection');
|
||||
require_js($CFG->wwwroot.'/group/lib/clientlib.js');
|
||||
|
||||
|
||||
$success = true;
|
||||
|
||||
|
@ -275,11 +280,6 @@ if ($success) {
|
|||
</fieldset>
|
||||
</form>
|
||||
<?php
|
||||
echo '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/yahoo/yahoo-min.js"></script>';
|
||||
echo '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/dom/dom-min.js"></script>';
|
||||
echo '<script type="text/javascript" src="'.$CFG->wwwroot.'/lib/yui/connection/connection-min.js"></script>';
|
||||
echo '<script type="text/javascript" src="'.$CFG->wwwroot.'/group/lib/clientlib.js"></script>'."\n";
|
||||
|
||||
echo '<script type="text/javascript">'."\n";
|
||||
echo '//<![CDATA['."\n";
|
||||
echo 'var groupsCombo = new UpdatableGroupsCombo("'.$CFG->wwwroot.'", '.$course->id.');'."\n";
|
||||
|
@ -290,4 +290,4 @@ if ($success) {
|
|||
print_footer($course);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue