diff --git a/classes/output/renderer.php b/classes/output/renderer.php index 01b0d422b5..0ccba357d1 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -800,7 +800,7 @@ protected function render_attendance_take_list(take_data $takedata) { $row->cells[] = html_writer::empty_tag('input', $attribs); // Select all radio buttons of the same status. $this->page->requires->js_amd_inline(" - require(['jquery', 'core_user/repository], function($, UserRepository) { + require(['jquery', 'core_user/repository'], function($, UserRepository) { $('#radiocheckstatus".$st->id."').click(function(e) { if ($('select[name=\"setallstatus-select\"] option:selected').val() == 'all') { $('#attendancetakeform').find('.st".$st->id."').prop('checked', true); @@ -873,7 +873,7 @@ protected function render_attendance_take_grid(take_data $takedata) { 'title' => get_string('setallstatusesto', 'attendance', $st->description))); // JS to select all radios of this status and prevent default behaviour of # link. $this->page->requires->js_amd_inline(" - require(['jquery', 'core_user/repository], function($, UserRepository) { + require(['jquery', 'core_user/repository'], function($, UserRepository) { $('#checkstatus".$st->id."').click(function(e) { if ($('select[name=\"setallstatus-select\"] option:selected').val() == 'unselected') { $('#attendancetakeform').find('input:indeterminate.st".$st->id."').prop('checked', true);