Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36882 course: Added aria-live for manual completion

This is required so that assistive technologies can notify user about change on completion status
  • Loading branch information...
commit 6299d9a1a74814131d40bfe35ef29108a5009636 1 parent b9ef2c9
Rajesh Taneja rajeshtaneja authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  course/lib.php
3  course/lib.php
View
@@ -1674,7 +1674,8 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
'type' => 'hidden', 'name' => 'completionstate',
'value' => $newstate));
echo html_writer::empty_tag('input', array(
- 'type' => 'image', 'src' => $imgsrc, 'alt' => $imgalt, 'title' => $imgtitle));
+ 'type' => 'image', 'src' => $imgsrc, 'alt' => $imgalt, 'title' => $imgtitle,
+ 'aria-live' => 'polite'));
echo html_writer::end_tag('div');
echo html_writer::end_tag('form');
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.