Permalink
Browse files

Merge branch 'MDL-36092-MOODLE_23_STABLE' of git://git.luns.net.uk/mo…

…odle into MOODLE_23_STABLE
  • Loading branch information...
2 parents e4224a5 + 37ceb6c commit 48fb811b4cb61b0cfa5ec2350a6065b98724a69d @danpoltawski danpoltawski committed Nov 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 course/lib.php
View
@@ -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;
}

0 comments on commit 48fb811

Please sign in to comment.