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
+1 -7
View File
@@ -68,13 +68,7 @@ echo $OUTPUT->heading(get_string('defaultcompletion', 'completion'));
echo $renderer->navigation($course, 'defaultcompletion');
$PAGE->requires->yui_module('moodle-core-formchangechecker',
'M.core_formchangechecker.init',
array(array(
'formid' => 'theform'
))
);
$PAGE->requires->string_for_js('changesmadereallygoaway', 'moodle');
$PAGE->requires->js_call_amd('core_form/changechecker', 'watchFormById', ['theform']);
echo $renderer->defaultcompletion($activityresourcedata);