WordPress.org

Make WordPress Core

Changeset 22665


Ignore:
Timestamp:
11/19/2012 06:34:41 AM (8 years ago)
Author:
koopersmith
Message:

Media: Blur the "Add Images" button when the media modal is opened. fixes #22445, see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r22569 r22665  
    436436        init: function() {
    437437            $('#wpbody').on('click', '.insert-media', function( event ) {
    438                 var editor = $(this).data('editor'),
     438                var $this = $(this),
     439                    editor = $this.data('editor'),
    439440                    workflow;
    440441
    441442                event.preventDefault();
     443
     444                // Remove focus from the `.insert-media` button.
     445                // Prevents Opera from showing the outline of the button
     446                // above the modal.
     447                //
     448                // See: http://core.trac.wordpress.org/ticket/22445
     449                $this.blur();
    442450
    443451                if ( ! editor )
Note: See TracChangeset for help on using the changeset viewer.