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:
parent
405470d264
commit
3797b7e18c
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue