MDL-69918 core: Update uses of legacy form change checker

This commit is contained in:
Andrew Nicols
2021-08-10 23:54:01 +08:00
parent cbe19158e9
commit 530322e2ce
62 changed files with 361 additions and 360 deletions
+2 -4
View File
@@ -158,9 +158,7 @@ echo $outputhtml;
echo html_writer::end_tag('fieldset');
echo html_writer::end_tag('form');
$PAGE->requires->yui_module('moodle-core-formchangechecker', 'M.core_formchangechecker.init', [[
'formid' => 'adminsettings'
]]);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
// Add the form change checker.
$PAGE->requires->js_call_amd('core_form/changechecker', 'watchFormById', ['adminsettings']);
echo $OUTPUT->footer();