mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-60205_group_hiding_clean' of git://github.com/davosmith/moodle
This commit is contained in:
commit
d63c2d35ec
1 changed files with 7 additions and 0 deletions
|
@ -283,6 +283,13 @@ if (typeof M.form.dependencyManager === 'undefined') {
|
||||||
els.each(function(node) {
|
els.each(function(node) {
|
||||||
var e = node.ancestor('.fitem', true);
|
var e = node.ancestor('.fitem', true);
|
||||||
if (e) {
|
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) {
|
if (hidden) {
|
||||||
e.setAttribute('hidden', 'hidden');
|
e.setAttribute('hidden', 'hidden');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue