From: cap2501 Date: Mon, 21 Aug 2006 06:15:24 +0000 (+0000) Subject: Semi-final version X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0894b9271e6a4fffd474806c875e4806fa67d7f6;p=moodle.git Semi-final version --- diff --git a/course/format/topics/format.php b/course/format/topics/format.php index 1d4c5f3af2..2bcad82076 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -7,9 +7,16 @@ // Included from "view.php" require_once($CFG->dirroot.'/mod/forum/lib.php'); + require_once($CFG->dirroot.'/lib/ajaxlib/ajaxlib.php'); + + + + $topic = optional_param('topic', -1, PARAM_INT); + + // Bounds for block widths define('BLOCK_L_MIN_WIDTH', 100); define('BLOCK_L_MAX_WIDTH', 210); @@ -55,6 +62,10 @@ $strmarkedthistopic = get_string('markedthistopic'); $strmoveup = get_string('moveup'); $strmovedown = get_string('movedown'); + + $COURSE->javascriptportal = new jsportal(); + print_require_js(Array("yui_yahoo","yui_dom","yui_event","yui_dragdrop","yui_logger","yui_connection","ajaxcourse_blocks","ajaxcourse_sections","ajaxcourse_topic")); + } @@ -263,5 +274,9 @@ } echo ''; + + //create javascript portal code + if($COURSE->javascriptportal) + $COURSE->javascriptportal->print_javascript($course->id); ?>