MDL-85327 admin: observe show/hide settings on category page.
Co-authored-by: Carlos Castillo <[email protected]>
This commit is contained in:
co-authored by
Carlos Castillo
parent
4d4369e073
commit
566c9670a3
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user