From 44ee5acee4c87069e0d8b4f3167bcc2146dd3602 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 26 Mar 2013 10:26:28 +0800 Subject: [PATCH] MDL-36882 course: Added aria-live for manual completion This is required so that assistive technologies can notify user about change on completion status --- course/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index f7842ee582d..78a6eb70ffc 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1727,7 +1727,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 {