Permalink
Browse files

MDL-25928 course: Fixed course info on the combo list to be a popup

  • Loading branch information...
1 parent 2075186 commit 6a1273cbc7f75e3b84fcb56824f5d0e7f873786c Sam Hemelryk committed Dec 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/renderer.php
View
@@ -168,6 +168,7 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
if ($hascourses) {
$content .= html_writer::start_tag('div', array('class'=>'courses'));
$coursecount = 0;
+ $strinfo = new lang_string('info');
foreach ($category->courses as $course) {
$classes = array('course');
$linkclass = 'course_link';
@@ -188,8 +189,9 @@ protected function course_category_tree_category(stdClass $category, $depth=1) {
}
if ($course->summary) {
+ $url = new moodle_url('/course/info.php', array('id' => $course->id));
$image = html_writer::empty_tag('img', array('src'=>$this->output->pix_url('i/info'), 'alt'=>$this->strings->summary));
- $content .= html_writer::link(new moodle_url('/course/info.php', array('id'=>$course->id)), $image, array('title'=>$this->strings->summary));
+ $content .= $this->action_link($url, $image, new popup_action('click', $url, 'courseinfo'), array('title' => $this->strings->summary));
}
$content .= html_writer::end_tag('div');
$content .= html_writer::end_tag('div');

0 comments on commit 6a1273c

Please sign in to comment.