diff options
author | David Rothstein <drothstein@gmail.com> | 2014-05-05 15:00:52 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-05-05 15:00:52 -0400 |
commit | 808a61aef282f43f55bf9d8db1de8d947f32e357 (patch) | |
tree | df8a33f9c6bf763be5b4b9b8de8ccb64ed68832b | |
parent | 972e6a9a3d66139cffba44313eac95e717e34843 (diff) | |
download | brdo-808a61aef282f43f55bf9d8db1de8d947f32e357.tar.gz brdo-808a61aef282f43f55bf9d8db1de8d947f32e357.tar.bz2 |
Issue #1333292 by dcam, mgifford | Everett Zufelt: Screen-reader users receive no info about file upload errors.
-rw-r--r-- | CHANGELOG.txt | 3 | ||||
-rw-r--r-- | modules/file/file.js | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 74cfa75a5..0a290b1c2 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,9 @@ 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 diff --git a/modules/file/file.js b/modules/file/file.js index 0135a3b27..fffec6b71 100644 --- a/modules/file/file.js +++ b/modules/file/file.js @@ -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; } |