MDL-85327 admin: observe show/hide settings on category page.

Co-authored-by: Carlos Castillo <[email protected]>
This commit is contained in:
Paul Holden
2025-05-01 10:54:09 +01:00
co-authored by Carlos Castillo
parent 4d4369e073
commit 566c9670a3
+4
View File
@@ -118,6 +118,10 @@ foreach ($settingspage->children as $childpage) {
}
$outputhtml .= html_writer::tag('div', '<!-- -->', array('class' => 'clearer'));
$outputhtml .= $setting->output_html($data);
if ($childpage->has_dependencies()) {
$opts = ['dependencies' => $childpage->get_dependencies_for_javascript()];
$PAGE->requires->js_call_amd('core/showhidesettings', 'init', [$opts]);
}
}
$outputhtml .= html_writer::end_tag('fieldset');
}