WordPress.org

Make WordPress Core

Changeset 22501


Ignore:
Timestamp:
11/09/2012 11:30:40 AM (8 years ago)
Author:
koopersmith
Message:

Media JS: Only block button events by default if the button does not link to anything. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22494 r22501  
    16261626
    16271627        click: function( event ) {
    1628             event.preventDefault();
     1628            if ( '#' === this.attributes.href )
     1629                event.preventDefault();
     1630
    16291631            if ( this.options.click && ! this.model.get('disabled') )
    16301632                this.options.click.apply( this, arguments );
Note: See TracChangeset for help on using the changeset viewer.