Browse files

Semi-final version

  • Loading branch information...
1 parent 04b2d74 commit 0894b9271e6a4fffd474806c875e4806fa67d7f6 cap2501 committed Aug 21, 2006
Showing with 15 additions and 0 deletions.
  1. +15 −0 course/format/topics/format.php
View
15 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 '</tr></table>';
+
+ //create javascript portal code
+ if($COURSE->javascriptportal)
+ $COURSE->javascriptportal->print_javascript($course->id);
?>

0 comments on commit 0894b92

Please sign in to comment.