MDL-18232: fixed section links error for IE8

This commit is contained in:
Rossiani Wijaya
2010-09-24 05:19:38 +00:00
parent 09cb29fbb6
commit 0e744d43dc
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class block_section_links extends block_base {
if (!empty($display)) {
$link = $CFG->wwwroot.'/course/view.php?id='.$this->instance->pageid.'&'.$sectionname.'=';
} else {
$link = '#section-';
$link = '#sectionblock-';
}
$sql = "SELECT section, visible
+2 -2
View File
@@ -113,7 +113,7 @@
if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
echo '<tr id="section-0" class="section main">';
echo '<td class="left side">&nbsp;</td>';
echo '<td id="sectionblock-0" class="left side">&nbsp;</td>';
echo '<td class="content">';
echo '<div class="summary">';
@@ -194,7 +194,7 @@
}
echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
echo '<td class="left side">'.$currenttext.$section.'</td>';
echo '<td id="sectionblock-'.$section.'" class="left side">'.$currenttext.$section.'</td>';
echo '<td class="content">';
if (!has_capability('moodle/course:viewhiddensections', $context) and !$thissection->visible) { // Hidden for students
+2 -2
View File
@@ -100,7 +100,7 @@
if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
echo '<tr id="section-0" class="section main">';
echo '<td class="left side">&nbsp;</td>';
echo '<td id="sectionblock-0" class="left side">&nbsp;</td>';
echo '<td class="content">';
echo '<div class="summary">';
@@ -187,7 +187,7 @@
}
echo '<tr id="section-'.$section.'" class="section main'.$sectionstyle.'">';
echo '<td class="left side">&nbsp;'.$currenttext.'</td>';
echo '<td id="sectionblock-'.$section.'" class="left side">&nbsp;'.$currenttext.'</td>';
$weekperiod = $weekday.' - '.$endweekday;