Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Semi-final version

  • Loading branch information...
commit 0894b9271e6a4fffd474806c875e4806fa67d7f6 1 parent 04b2d74
cap2501 authored
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);
?>
Please sign in to comment.
Something went wrong with that request. Please try again.