MDL-36092 Course/AJAX Ensure that dropdown resource pickers are shown when JS is disabled

This commit is contained in:
Andrew Robert Nicols
2012-11-01 07:50:41 +00:00
parent 6109f2112c
commit 2757a205c8
+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;
}