MDL-35927 filepicker: add aria attribute to display modal error

This commit is contained in:
Rossiani Wijaya
2013-08-01 15:40:49 +08:00
parent f171a8c06e
commit 239fd1544f
+2 -2
View File
@@ -803,8 +803,8 @@ class core_files_renderer extends plugin_renderer_base {
*/
private function fp_js_template_message() {
$rv = '
<div class="file-picker fp-msg">
<p class="{!}fp-msg-text"></p>
<div class="file-picker fp-msg" role="alertdialog" aria-live="assertive" aria-labelledby="fp-msg-labelledby">
<p class="{!}fp-msg-text" id="fp-msg-labelledby"></p>
<button class="{!}fp-msg-butok">'.get_string('ok').'</button>
</div>';
return preg_replace('/\{\!\}/', '', $rv);