mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-35930 filepicker filemanaer: make announcement on page change when selecting view files options
This commit is contained in:
parent
d2aa53be1b
commit
3f0d3a7ea0
@ -402,6 +402,8 @@ M.form_filemanager.init = function(Y, options) {
|
||||
}
|
||||
e.currentTarget.addClass('checked')
|
||||
this.render();
|
||||
this.filemanager.one('.fp-content').setAttribute('tabIndex', '0');
|
||||
this.filemanager.one('.fp-content').focus();
|
||||
}
|
||||
}, this);
|
||||
},
|
||||
|
@ -791,6 +791,14 @@ M.core_filepicker.init = function(Y, options) {
|
||||
} else {
|
||||
this.view_as_icons(appenditems);
|
||||
}
|
||||
this.fpnode.one('.fp-content').setAttribute('tabindex', '0');
|
||||
// Temporary fix for IE8 until MDL-41229 is integrated.
|
||||
// The role dialog is needed for screen reader to read
|
||||
// the filepicker's content (MDL-41232).
|
||||
this.fpnode.one('.fp-content').setAttribute('role', 'dialog');
|
||||
this.fpnode.one('.fp-content').setAttribute('aria-live', 'assertive');
|
||||
// End of temporary fix.
|
||||
this.fpnode.one('.fp-content').focus();
|
||||
// display/hide the link for requesting next page
|
||||
if (!appenditems && this.active_repo.hasmorepages) {
|
||||
if (!this.fpnode.one('.fp-content .fp-nextpage')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user