Merge branch 'MDL-60205_group_hiding_clean' of git://github.com/davosmith/moodle

This commit is contained in:
Jun Pataleta 2017-10-10 11:08:06 +08:00
commit d63c2d35ec

View file

@ -283,6 +283,13 @@ if (typeof M.form.dependencyManager === 'undefined') {
els.each(function(node) {
var e = node.ancestor('.fitem', true);
if (e) {
// Cope with differences between clean and boost themes.
if (e.hasClass('fitem_fgroup')) {
// Items within groups are not wrapped in div.fitem in theme_clean, so
// we need to hide the input, not the div.fitem.
e = node;
}
if (hidden) {
e.setAttribute('hidden', 'hidden');
} else {