mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Accessibility: Make the inline uploader button a real button.
See `wp.media.view.UploaderWindow`. Fixes #39305. git-svn-id: https://develop.svn.wordpress.org/trunk@40021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -8385,7 +8385,7 @@ UploaderWindow = wp.media.View.extend({
|
||||
initialize: function() {
|
||||
var uploader;
|
||||
|
||||
this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
|
||||
this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
|
||||
|
||||
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
||||
dropzone: this.$el,
|
||||
|
||||
@@ -25,7 +25,7 @@ UploaderWindow = wp.media.View.extend({
|
||||
initialize: function() {
|
||||
var uploader;
|
||||
|
||||
this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
|
||||
this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
|
||||
|
||||
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
|
||||
dropzone: this.$el,
|
||||
|
||||
Reference in New Issue
Block a user