Merge branch 'MDL-60205_group_hiding_clean' of git://github.com/davosmith/moodle
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user