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

git-svn-id: https://develop.svn.wordpress.org/trunk@22501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-11-09 11:30:40 +00:00
parent b56b57bc2c
commit a72459a5f5
1 changed files with 3 additions and 1 deletions

View File

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