Skip to content

Commit

Permalink
Merge branch 'MDL-36092-MOODLE_23_STABLE' of git://git.luns.net.uk/mo…
Browse files Browse the repository at this point in the history
…odle into MOODLE_23_STABLE
  • Loading branch information
danpoltawski committed Nov 7, 2012
2 parents e4224a5 + 37ceb6c commit 48fb811
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions course/lib.php
Expand Up @@ -1876,8 +1876,9 @@ function print_section_add_menus($course, $section, $modnames, $vertical=false,
$output = html_writer::tag('div', $output, array('class' => 'hiddenifjs addresourcedropdown'));
$modchooser = html_writer::tag('div', $modchooser, array('class' => 'visibleifjs addresourcemodchooser'));
} else {
$output = html_writer::tag('div', $output, array('class' => 'visibleifjs addresourcedropdown'));
$modchooser = html_writer::tag('div', $modchooser, array('class' => 'hiddenifjs addresourcemodchooser'));
// If the module chooser is disabled, we need to ensure that the dropdowns are shown even if javascript is disabled
$output = html_writer::tag('div', $output, array('class' => 'show addresourcedropdown'));
$modchooser = html_writer::tag('div', $modchooser, array('class' => 'hide addresourcemodchooser'));
}
$output = $modchooser . $output;
}
Expand Down

0 comments on commit 48fb811

Please sign in to comment.