Skip to content
Snippets Groups Projects
Commit 808a61ae authored by David Rothstein's avatar David Rothstein
Browse files

Issue #1333292 by dcam, mgifford | Everett Zufelt: Screen-reader users receive...

Issue #1333292 by dcam, mgifford | Everett Zufelt: Screen-reader users receive no info about file upload errors.
parent 972e6a9a
No related branches found
No related tags found
No related merge requests found
Drupal 7.28, xxxx-xx-xx (development version)
-----------------------
- Improved screen reader support by adding an aria-live HTML attribute to file
upload fields when there is an error uploading the file (minor markup
change).
- Made the pager on the Tracker module listing pages show the same number of
items as other pagers throughout Drupal core (minor UI change).
- Fixed a bug which caused caches not to be properly cleared when a file entity
......
......@@ -83,7 +83,7 @@ Drupal.file = Drupal.file || {
'%filename': this.value.replace('C:\\fakepath\\', ''),
'%extensions': extensionPattern.replace(/\|/g, ', ')
});
$(this).closest('div.form-managed-file').prepend('<div class="messages error file-upload-js-error">' + error + '</div>');
$(this).closest('div.form-managed-file').prepend('<div class="messages error file-upload-js-error" aria-live="polite">' + error + '</div>');
this.value = '';
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment