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

git-svn-id: http://core.svn.wordpress.org/trunk@22501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-11-09 11:30:40 +00:00
parent 405470d264
commit 3797b7e18c
1 changed files with 3 additions and 1 deletions

View File

@ -1625,7 +1625,9 @@
}, },
click: function( event ) { click: function( event ) {
if ( '#' === this.attributes.href )
event.preventDefault(); event.preventDefault();
if ( this.options.click && ! this.model.get('disabled') ) if ( this.options.click && ! this.model.get('disabled') )
this.options.click.apply( this, arguments ); this.options.click.apply( this, arguments );
} }