diff options
Diffstat (limited to 'src/js/media/views')
-rw-r--r-- | src/js/media/views/button.js | 2 | ||||
-rw-r--r-- | src/js/media/views/uploader/status.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/js/media/views/button.js b/src/js/media/views/button.js index ae7ff7852f..988c95ccb1 100644 --- a/src/js/media/views/button.js +++ b/src/js/media/views/button.js @@ -33,7 +33,7 @@ var Button = wp.media.View.extend(/** @lends wp.media.view.Button.prototype */{ this.model = new Backbone.Model( this.defaults ); // If any of the `options` have a key from `defaults`, apply its - // value to the `model` and remove it from the `options object. + // value to the `model` and remove it from the `options` object. _.each( this.defaults, function( def, key ) { var value = this.options[ key ]; if ( _.isUndefined( value ) ) { diff --git a/src/js/media/views/uploader/status.js b/src/js/media/views/uploader/status.js index 86c538b833..f629e0a343 100644 --- a/src/js/media/views/uploader/status.js +++ b/src/js/media/views/uploader/status.js @@ -124,8 +124,11 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype * this.views.add( '.upload-errors', statusError, { at: 0 } ); _.delay( function() { buttonClose.trigger( 'focus' ); - wp.a11y.speak( error.get( 'message' ), 'assertive' ); }, 1000 ); + + _.delay( function() { + wp.a11y.speak( error.get( 'message' ) ); + }, 1500 ); }, dismiss: function() { @@ -135,6 +138,7 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype * _.invoke( errors, 'remove' ); } wp.Uploader.errors.reset(); + wp.a11y.speak( wp.i18n.__( 'Error dismissed.' ) ); // Move focus to the modal after the dismiss button gets removed from the DOM. if ( this.controller.modal ) { this.controller.modal.focusManager.focus(); |