Merge branch 'MDL-36092-master' of git://git.luns.net.uk/moodle

This commit is contained in:
Dan Poltawski
2012-11-07 16:56:11 +08:00
+3 -2
View File
@@ -1824,8 +1824,9 @@ function print_section_add_menus($course, $section, $modnames = null, $vertical=
$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;
}