Skip to content

Commit

Permalink
fix for unique toggle names
Browse files Browse the repository at this point in the history
  • Loading branch information
Syxton committed Jun 14, 2024
1 parent 226ea34 commit cd600d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ function block_grade_me_tree($course) {
$moduleicon = $OUTPUT->pix_icon('icon', $moduletitle, $itemmodule, array('class' => 'gm_icon'));
}

$text .= '<dd id="cmid' . $coursemoduleid . '" class="module">' . "\n"; // Open module.
$text .= '<dd id="cmid' . $itemmodule . $coursemoduleid . '" class="module">' . "\n"; // Open module.
$text .= '<div class="dd-wrap">' . "\n";
$text .= '<div tabindex=0 class="toggle fa fa-caret-right" aria-hidden="true"
onclick="$(\'dd#cmid' . $coursemoduleid . ' > div div.toggle\')
.toggleClass(\'open\');$(\'dd#cmid' . $coursemoduleid . ' > ul\')
onclick="$(\'dd#cmid' . $itemmodule . $coursemoduleid . ' > div div.toggle\')
.toggleClass(\'open\');$(\'dd#cmid' . $itemmodule . $coursemoduleid . ' > ul\')
.toggleClass(\'block_grade_me_hide\');">
<span class="sr-only">Toggle Section</span>
</div>' . "\n";
Expand Down

0 comments on commit cd600d6

Please sign in to comment.