MDL-60205 form: fix hiding of elements within groups with theme_clean

This commit is contained in:
Davo Smith
2017-10-03 09:10:56 +01:00
parent b67f3bc693
commit c377d07f26
+7
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 {