Skip to content

Commit

Permalink
Merge pull request #730 from opitz/fix_bulk_mark_links
Browse files Browse the repository at this point in the history
fixed JS typos for bulk mark links
  • Loading branch information
danmarsden authored Feb 29, 2024
2 parents 6aec1a5 + 873b855 commit 78860f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 78860f5

Please sign in to comment.