From: stronk7 Date: Thu, 24 Apr 2003 16:47:06 +0000 (+0000) Subject: Changed to show the hidden choices dimmed (bug #364) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5094d166b7f93246a90e77c7f1a666cce9bfa918;p=moodle.git Changed to show the hidden choices dimmed (bug #364) --- diff --git a/mod/choice/index.php b/mod/choice/index.php index 6e043dc742..afcff8d1c0 100644 --- a/mod/choice/index.php +++ b/mod/choice/index.php @@ -69,14 +69,19 @@ } else { $section = ""; } - + + //Calculate the href + if (!$choice->visible) { + //Show dimmed if the mod is hidden + $tt_href = "coursemodule\">$choice->name"; + } else { + //Show normal if the mod is visible + $tt_href = "coursemodule\">$choice->name"; + } if ($course->format == "weeks" || $course->format == "topics") { - $table->data[] = array ($section, - "coursemodule\">$choice->name", - $aa); + $table->data[] = array ($section, $tt_href, $aa); } else { - $table->data[] = array ("coursemodule\">$choice->name", - $aa); + $table->data[] = array ($tt_href, $aa); } } echo "
";