Permalink
Browse files

forum rating ajax MDL-20119 Enable ajax to work on single-discussion …

…forum
  • Loading branch information...
1 parent 1ec7f48 commit df87462018b4bdf46563ddbf596446ef7bdce31e @moodler moodler committed Nov 2, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/forum/view.php
View
@@ -65,6 +65,11 @@
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
/// Print header.
+
+ /// Add ajax-related libs
+ require_js(array('yui_yahoo', 'yui_event', 'yui_dom', 'yui_connection', 'yui_json'));
+ require_js($CFG->wwwroot . '/mod/forum/rate_ajax.js');
+
$navigation = build_navigation('', $cm);
print_header_simple(format_string($forum->name), "",
$navigation, "", "", true, $buttontext, navmenu($course, $cm));

0 comments on commit df87462

Please sign in to comment.