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:
parent
b56b57bc2c
commit
a72459a5f5
@ -1625,7 +1625,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
click: function( event ) {
|
click: function( event ) {
|
||||||
event.preventDefault();
|
if ( '#' === this.attributes.href )
|
||||||
|
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 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user