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 -7
View File
@@ -148,13 +148,8 @@ if (empty($SITE->fullname)) {
echo $OUTPUT->render_from_template('core_admin/settings', $context);
}
$PAGE->requires->yui_module('moodle-core-formchangechecker',
'M.core_formchangechecker.init',
array(array(
'formid' => 'adminsettings'
))
);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
// Add the form change checker.
$PAGE->requires->js_call_amd('core_form/changechecker', 'watchFormById', ['adminsettings']);
if ($settingspage->has_dependencies()) {
$opts = [