File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
2
2
Drupal 7.28, xxxx-xx-xx (development version)
3
3
-----------------------
4
+ - Improved screen reader support by adding an aria-live HTML attribute to file
5
+ upload fields when there is an error uploading the file (minor markup
6
+ change).
4
7
- Made the pager on the Tracker module listing pages show the same number of
5
8
items as other pagers throughout Drupal core (minor UI change).
6
9
- Fixed a bug which caused caches not to be properly cleared when a file entity
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ Drupal.file = Drupal.file || {
83
83
'%filename' : this . value . replace ( 'C:\\fakepath\\' , '' ) ,
84
84
'%extensions' : extensionPattern . replace ( / \| / g, ', ' )
85
85
} ) ;
86
- $ ( this ) . closest ( 'div.form-managed-file' ) . prepend ( '<div class="messages error file-upload-js-error">' + error + '</div>' ) ;
86
+ $ ( this ) . closest ( 'div.form-managed-file' ) . prepend ( '<div class="messages error file-upload-js-error" aria-live="polite" >' + error + '</div>' ) ;
87
87
this . value = '' ;
88
88
return false ;
89
89
}
You can’t perform that action at this time.
0 commit comments